summaryrefslogtreecommitdiffstats
path: root/winsup/cygwin/fhandler_tty.cc
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2011-05-06 19:13:22 +0000
committerChristopher Faylor <me@cgf.cx>2011-05-06 19:13:22 +0000
commitb66dba56c5f076c992f9dfc0f8f9dae29d1e9500 (patch)
tree146f0395d6b33ee8f27024d23897898444122a09 /winsup/cygwin/fhandler_tty.cc
parent57aac4bf26b5f49faac58ac8e8607f5975c41181 (diff)
downloadcygnal-b66dba56c5f076c992f9dfc0f8f9dae29d1e9500.tar.gz
cygnal-b66dba56c5f076c992f9dfc0f8f9dae29d1e9500.tar.bz2
cygnal-b66dba56c5f076c992f9dfc0f8f9dae29d1e9500.zip
* fhandler.h (fhandler_dev_dsp): Cosmetic change.
* fhandler_tty.cc (fhandler_pty_master::process_slave_output): Put back Sleep(10) for tty_master case. * sigproc.cc (stopped_or_terminated): Don't consider a pid which has been reaped to be terminated.
Diffstat (limited to 'winsup/cygwin/fhandler_tty.cc')
-rw-r--r--winsup/cygwin/fhandler_tty.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/winsup/cygwin/fhandler_tty.cc b/winsup/cygwin/fhandler_tty.cc
index 42e539191..5665fc845 100644
--- a/winsup/cygwin/fhandler_tty.cc
+++ b/winsup/cygwin/fhandler_tty.cc
@@ -312,7 +312,10 @@ fhandler_pty_master::process_slave_output (char *buf, size_t len, int pktmode_on
goto out;
if (is_tty_master ())
- continue;
+ {
+ Sleep (10);
+ continue;
+ }
if (is_nonblocking ())
{