Re: Pipes bug when spawning non-cygwin processes

2020-02-24 Thread Edward Lam
Hi, Thank you for your reply. On Thu, Feb 20, 2020 at 8:01 PM Takashi Yano wrote: > Thanks for the test case. Indeed, this works upto cygwin 3.0.7, > and does not work in cygwin 3.1.0 or later. > > However, I wonder what platform is your program for. This test > case does not work also in nativ

Re: Pipes bug when spawning non-cygwin processes

2020-02-20 Thread Takashi Yano
On Fri, 21 Feb 2020 10:07:59 +0900 Takashi Yano wrote: > Or just compile with: > cl pipes.cpp /link /subsystem:console Sorry, you need main() for this. -- Takashi Yano -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation:

Re: Pipes bug when spawning non-cygwin processes

2020-02-20 Thread Takashi Yano
On Fri, 21 Feb 2020 10:01:21 +0900 Takashi Yano wrote: > On Thu, 20 Feb 2020 14:33:27 -0500 > Edward Lam wrote: > > On Tue, Feb 18, 2020 at 2:43 PM Takashi Yano wrote: > > > Could you please provide a simple test case? > > > > Here you go: > > > > // pipes.cpp > > // > > // Compile in a Visual S

Re: Pipes bug when spawning non-cygwin processes

2020-02-20 Thread Takashi Yano
On Thu, 20 Feb 2020 14:33:27 -0500 Edward Lam wrote: > On Tue, Feb 18, 2020 at 2:43 PM Takashi Yano wrote: > > Could you please provide a simple test case? > > Here you go: > > // pipes.cpp > // > // Compile in a Visual Studio x64 Native Tools Command Prompt: > // cl pipes.cpp /link /subsyst

Re: Pipes bug when spawning non-cygwin processes

2020-02-20 Thread Edward Lam
Hi Takashi, On Tue, Feb 18, 2020 at 2:43 PM Takashi Yano wrote: > Could you please provide a simple test case? Here you go: // pipes.cpp // // Compile in a Visual Studio x64 Native Tools Command Prompt: // cl pipes.cpp /link /subsystem:windows // // Run from inside a Cygwin shell, the pro

Re: Pipes bug when spawning non-cygwin processes

2020-02-18 Thread Takashi Yano
On Tue, 18 Feb 2020 14:24:38 -0500 Edward Lam wrote: > I'm noticing a different problem with pipes that isn't fixed even in the > latest 2020-02-12 cygwin1.dll snapshot. When a native graphical Windows > process is launched (in the foreground without & in the command line) from > mintty/bash, the S

Re: Pipes bug when spawning non-cygwin processes

2020-02-18 Thread Edward Lam
Hi Folks, I'm noticing a different problem with pipes that isn't fixed even in the latest 2020-02-12 cygwin1.dll snapshot. When a native graphical Windows process is launched (in the foreground without & in the command line) from mintty/bash, the STARTUPINFO structure for the child Windows process

Re: Pipes bug when spawning non-cygwin processes

2020-01-30 Thread Edward Lam
On Thu, Jan 30, 2020 at 5:25 PM Takashi Yano wrote: > Probably, this is the same issue as > https://www.cygwin.com/ml/cygwin/2020-01/msg00093.html. > > Please try latest cygwin snapshot. > https://cygwin.com/snapshots/ > > Indeed, this works again after 20202401 snapshot! Thanks, -Edward -- Pr

Re: Pipes bug when spawning non-cygwin processes

2020-01-30 Thread Takashi Yano
On Thu, 30 Jan 2020 14:03:50 -0500 Edward Lam wrote: > I'm getting a problem where cygwin parent processes spawning non-cygwin > child processes no longer detect when stdin has been closed. Please see the > sample python code at the end where I've isolated the problem. I've got > cygwin's python2 r

Pipes bug when spawning non-cygwin processes

2020-01-30 Thread Edward Lam
Hi Folks, I'm getting a problem where cygwin parent processes spawning non-cygwin child processes no longer detect when stdin has been closed. Please see the sample python code at the end where I've isolated the problem. I've got cygwin's python2 running spawn_bar.py that popen's a native non-cygw