summaryrefslogtreecommitdiffstats
path: root/winsup/cygwin/wait.cc
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2009-07-18 20:25:07 +0000
committerChristopher Faylor <me@cgf.cx>2009-07-18 20:25:07 +0000
commitacced2cea2e52c17dbf57efd9b7d1b53e73aedcf (patch)
tree1d0deee0e781aa555021e4bbba12dd44ba637a60 /winsup/cygwin/wait.cc
parentd4e45e3b99bd14e4253246518fced5eb5a8bcd58 (diff)
downloadcygnal-acced2cea2e52c17dbf57efd9b7d1b53e73aedcf.tar.gz
cygnal-acced2cea2e52c17dbf57efd9b7d1b53e73aedcf.tar.bz2
cygnal-acced2cea2e52c17dbf57efd9b7d1b53e73aedcf.zip
* exceptions.cc (sig_handle_tty_stop): Set stopsig to SIGCONT when continuing.
(stopped_or_terminated): Honor WCONTINUED. * wait.cc (wait4): Ditto. * include/cygwin/wait.h (WCONTINUED): Define. (__W_CONTINUED): Ditto. (WIFCONTINUED): Ditto.
Diffstat (limited to 'winsup/cygwin/wait.cc')
-rw-r--r--winsup/cygwin/wait.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/winsup/cygwin/wait.cc b/winsup/cygwin/wait.cc
index 772b5cc88..3286434ba 100644
--- a/winsup/cygwin/wait.cc
+++ b/winsup/cygwin/wait.cc
@@ -52,7 +52,7 @@ wait4 (int intpid, int *status, int options, struct rusage *r)
while (1)
{
sig_dispatch_pending ();
- if (options & ~(WNOHANG | WUNTRACED))
+ if (options & ~(WNOHANG | WUNTRACED | WCONTINUED))
{
set_errno (EINVAL);
res = -1;