Mercurial > emacs
diff src/w32proc.c @ 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 | ff7738cdbd99 |
children | b6eacb7da9f6 |
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)