This is the mail archive of the
cygwin@cygwin.com
mailing list for the Cygwin project.
Problem report: pipes and suspending do not work well together
- From: <juhani dot rantanen at nokia dot com>
- To: <cygwin at cygwin dot com>
- Date: Thu, 10 Oct 2002 17:29:33 +0300
- Subject: Problem report: pipes and suspending do not work well together
Hello and thanks for your attention,
I am using the newest Cygwin net release (upgraded today by re-running Cygwin Setup to make sure this is not fixed yet). I noticed this problem while writing a long pipeline ending with "| less" and then trying to suspend the processes. When I do this the Cygwin window hangs until I kill the processes in the pipeline with "kill" or Windows Task Manager. The simplest testcase I've managed to find is:
cat README | less # press ^Z immediately, hangs. Scroll to the bottom and works
This one always fails, naturally...
yes | less
I can reproduce the former case with any text file that is at least 16k long, probably the true value is the number of bytes "less" reads from a pipe when it starts, and this bug happens if you suspend a pipeline where a writer is currently writing to a pipe and blocked because reader hasn't read the data yet. Can't suggest any fixes though.
If you have any questions, please Cc: to me also because I'm not on the list.
BR,
--
Juhani Rantanen
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/