Mercurial > emacs
changeset 12325:aa6fc4e97a28
(win32_wait): Massage retval into what is expected in Unix.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Mon, 19 Jun 1995 23:20:42 +0000 |
parents | 41bd44279127 |
children | b99947e6b447 |
files | src/w32proc.c |
diffstat | 1 files changed, 10 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/w32proc.c Mon Jun 19 23:18:54 1995 +0000 +++ b/src/w32proc.c Mon Jun 19 23:20:42 1995 +0000 @@ -395,7 +395,16 @@ errno = EINVAL; return -1; } - + + /* Massage the exit code from the process to match the format expected + by the WIFSTOPPED et al macros in syswait.h. Only WIFSIGNALLED and + WIFEXITED are supported; WIFSTOPPED doesn't make sense under NT. */ + + if (retval == STATUS_CONTROL_C_EXIT) + retval = SIGINT; + else + retval <<= 8; + cp = cps[active]; if (status)