Re: bug in pipe() and pipe2()

2011-06-30 Thread Corinna Vinschen
On Jun 30 07:50, Ryan Johnson wrote: > On 30/06/2011 5:38 AM, Corinna Vinschen wrote: > > I only see a very ugly workaround for this > >problem. > > > >I checked it in, together with two more fixes to avoid a crash. > >If somebody has a better solution, feel free to mention it. > If you don't mind

Re: bug in pipe() and pipe2()

2011-06-30 Thread Ryan Johnson
On 30/06/2011 5:38 AM, Corinna Vinschen wrote: On Jun 29 15:30, Eric Blake wrote: I was testing the behavior when pipe() fails, in order to propose an update to POSIX wording: http://austingroupbugs.net/view.php?id=467 However, cygwin's pipe implementation dumps core when it runs out of fds, [.

Re: bug in pipe() and pipe2()

2011-06-30 Thread Corinna Vinschen
On Jun 29 15:30, Eric Blake wrote: > I was testing the behavior when pipe() fails, in order to propose an > update to POSIX wording: http://austingroupbugs.net/view.php?id=467 > > However, cygwin's pipe implementation dumps core when it runs out of > fds, [...] > Expected behavior is EMFILE and fd

bug in pipe() and pipe2()

2011-06-29 Thread Eric Blake
I was testing the behavior when pipe() fails, in order to propose an update to POSIX wording: http://austingroupbugs.net/view.php?id=467 However, cygwin's pipe implementation dumps core when it runs out of fds, so I could not definitively state whether cygwin properly leaves the fd array unchanged