Re: popen bugs

2009-08-18 Thread Christopher Faylor
On Tue, Aug 18, 2009 at 10:45:13AM -0400, Christopher Faylor wrote: >I don't think it is worth fixing this for 1.7.1... Nevermind. On reflection, this was trivial to implement since we already maintained a list of popen'ed file handles. cgf -- Problem reports: http://cygwin.com/problems.h

Re: popen bugs

2009-08-18 Thread Christopher Faylor
On Tue, Aug 18, 2009 at 08:36:04AM -0600, Eric Blake wrote: >According to Christopher Faylor on 8/17/2009 5:02 PM: >> On Mon, Aug 17, 2009 at 03:45:23PM -0700, Eric Blake wrote: >>> popen misbehaves when various std fds are closed. >> >> And, who among us could have not seen that coming? > >I see

Re: popen bugs

2009-08-18 Thread Eric Blake
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 According to Christopher Faylor on 8/17/2009 5:02 PM: > On Mon, Aug 17, 2009 at 03:45:23PM -0700, Eric Blake wrote: >> popen misbehaves when various std fds are closed. > > And, who among us could have not seen that coming? I see you fixed the fd acc

Re: popen bugs

2009-08-17 Thread Christopher Faylor
On Mon, Aug 17, 2009 at 03:45:23PM -0700, Eric Blake wrote: >popen misbehaves when various std fds are closed. And, who among us could have not seen that coming? cgf -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: htt

popen bugs

2009-08-17 Thread Eric Blake
xec parent: fd 1: closed parent: fd 2: open child: fd 0: closed child: fd 1: closed child: fd 2: open expected "child: fd 1: open" When stdin is closed and the parent is writing to the slave, the slave fails to get the read end of the pipe set to its stdin (regardless of whether stdout or