This is the mail archive of the
cygwin
mailing list for the Cygwin project.
RE: rxvt loses output connection with non cygwin console processes
I apologize, I forgot to mention that I tried both with and without the new
"pipe_byte" CYGWIN option. It made no difference.
To OP: you'll definitely want to look into using the new "pipe_byte" option
since you are working with non-Cygwin processes. See the thread I started
late last month titled "Cygwin passes through null writes to other software
when redirecting standard input/output". If you redirect standard input for
a non-Cygwin program, you'll be affected.
> As the OP notes, I also only have this problem when running the test
> program from a "GUI" terminal. It seems that any program doing a null
write
> to standard output (and probably standard error?) will trigger the
problem.
>
> From Windows command prompt / standard Windows console window:
> Running Cygwin.bat to start Cygwin and then running ./Test.exe works fine.
>
> From mintty.exe: Running ./Test.exe causes bash to hang. Test.exe runs
to
> completion and terminates, but bash doesn't get the hint. CPU usage is at
> 0%. If I use Windows Task Manager to kill bash.exe, then mintty.exe
> correctly terminates.
>
> From rxvt.exe: Running ./Test.exe causes bash to hang like with mintty.
> Test.exe runs to completion and terminates but bash is hung. For some
> reason, a thread in rxvt spins in an infinite loop, sucking 100% of a
single CPU
> core. The hung bash.exe doesn't use any CPU. If I use Windows Task
> Manager to kill bash.exe, then rxvt.exe correctly exits its loop and
> terminates.
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple