1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-11-27 07:37:33 +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

@ -396,6 +396,15 @@ win32_wait (int *status)
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)