1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-11-23 07:19:15 +00:00

(win32_wait): Massage retval into what is expected in Unix.

This commit is contained in:
Richard M. Stallman 1995-06-19 23:20:42 +00:00
parent 5fc0154cf4
commit bc69349bba

View File

@ -395,7 +395,16 @@ win32_wait (int *status)
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)