* 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.
This commit is contained in:
Christopher Faylor
2009-07-18 20:25:07 +00:00
parent d4e45e3b99
commit acced2cea2
5 changed files with 21 additions and 4 deletions

View File

@ -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;