* 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

@ -1,6 +1,6 @@
/* cygwin/wait.h
Copyright 2006 Red Hat, Inc.
Copyright 2006, 2009 Red Hat, Inc.
This file is part of Cygwin.
@ -13,6 +13,8 @@ details. */
#define WNOHANG 1
#define WUNTRACED 2
#define WCONTINUED 8
#define __W_CONTINUED 0xffff
/* A status looks like:
<2 bytes info> <2 bytes code>
@ -26,6 +28,7 @@ details. */
#define WIFEXITED(w) (((w) & 0xff) == 0)
#define WIFSIGNALED(w) (((w) & 0x7f) > 0 && (((w) & 0x7f) < 0x7f))
#define WIFSTOPPED(w) (((w) & 0xff) == 0x7f)
#define WIFCONTINUED(w) (((w) & 0xffff) == __W_CONTINUED)
#define WEXITSTATUS(w) (((w) >> 8) & 0xff)
#define WTERMSIG(w) ((w) & 0x7f)
#define WSTOPSIG WEXITSTATUS