Commit bc69349b authored by Richard M. Stallman's avatar Richard M. Stallman
Browse files

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

parent 5fc0154c
......@@ -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)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment