Re: select() and named pipes

2010-02-16 Thread Enrico Forestieri
On Mon, Feb 15, 2010 at 10:16:55PM -0500, Christopher Faylor wrote: On Tue, Feb 16, 2010 at 02:20:55AM +0100, Enrico Forestieri wrote: On Sun, Feb 14, 2010 at 08:54:27PM -0500, Christopher Faylor wrote: I just checked in YA in my series of attempts to get this working right. It will

Re: select() and named pipes

2010-02-15 Thread Enrico Forestieri
On Sun, Feb 14, 2010 at 08:54:27PM -0500, Christopher Faylor wrote: I just checked in YA in my series of attempts to get this working right. It will behave marginally better now but there are still problems if you attempt to write to a fifo before anything is reading it and then try to do a

Re: select() and named pipes

2010-02-15 Thread Christopher Faylor
On Tue, Feb 16, 2010 at 02:20:55AM +0100, Enrico Forestieri wrote: On Sun, Feb 14, 2010 at 08:54:27PM -0500, Christopher Faylor wrote: I just checked in YA in my series of attempts to get this working right. It will behave marginally better now but there are still problems if you attempt to

Re: select() and named pipes

2010-02-14 Thread Christopher Faylor
at 11:43:09PM +0100, Enrico Forestieri wrote: I am experiencing a problem with select() and named pipes in cygwin 1.7. The attached test case segfaults on the select() call, but works fine with both cygwin 1.5 and linux. Thanks for the test case. This should be fixed in the next Cygwin

Re: select() and named pipes

2010-01-03 Thread Enrico Forestieri
On Wed, Dec 23, 2009 at 03:12:19AM +0100, Enrico Forestieri wrote: On Tue, Dec 22, 2009 at 07:37:14PM -0500, Christopher Faylor wrote: On Tue, Dec 22, 2009 at 11:43:09PM +0100, Enrico Forestieri wrote: I am experiencing a problem with select() and named pipes in cygwin 1.7. The attached

Re: select() and named pipes

2010-01-03 Thread Christopher Faylor
a problem with select() and named pipes in cygwin 1.7. The attached test case segfaults on the select() call, but works fine with both cygwin 1.5 and linux. Thanks for the test case. This should be fixed in the next Cygwin snapshot but it will not be fixed (of course?) in 1.7.1 which is now

select() and named pipes

2009-12-22 Thread Enrico Forestieri
I am experiencing a problem with select() and named pipes in cygwin 1.7. The attached test case segfaults on the select() call, but works fine with both cygwin 1.5 and linux. -- Enrico #include stdio.h #include stdlib.h #include errno.h #include sys/select.h #include sys/types.h #include sys

Re: select() and named pipes

2009-12-22 Thread Dave Korn
Enrico Forestieri wrote: I am experiencing a problem with select() and named pipes in cygwin 1.7. The attached test case segfaults on the select() call, but works fine with both cygwin 1.5 and linux. Confirmed. It appears that start_thread_pipe() is called for both pipes and fifos, but only

Re: select() and named pipes

2009-12-22 Thread Christopher Faylor
On Tue, Dec 22, 2009 at 11:43:09PM +0100, Enrico Forestieri wrote: I am experiencing a problem with select() and named pipes in cygwin 1.7. The attached test case segfaults on the select() call, but works fine with both cygwin 1.5 and linux. Thanks for the test case. This should be fixed

Re: select() and named pipes

2009-12-22 Thread Enrico Forestieri
On Tue, Dec 22, 2009 at 07:37:14PM -0500, Christopher Faylor wrote: On Tue, Dec 22, 2009 at 11:43:09PM +0100, Enrico Forestieri wrote: I am experiencing a problem with select() and named pipes in cygwin 1.7. The attached test case segfaults on the select() call, but works fine with both

using select for named pipes

2002-12-16 Thread Harshavardhana Adiga
Title: Message Hi, I am new to cygwin.I am creating a windows named pipe using the normal windows api. In the cygwin documetation it is said that select call works for file descriptors,handles etc.Can I able to pass this handle directly to a select call? if no can I use