aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRichard M. Stallman1995-06-19 23:20:42 +0000
committerRichard M. Stallman1995-06-19 23:20:42 +0000
commitbc69349bba9310f4cb65022f9e8f81698b758abd (patch)
treeec4bc5cd0e42f13377a733cda8ce60d28c619d3d /src
parent5fc0154cf4ce72ff117f8891ed1fddb0af66a528 (diff)
downloademacs-bc69349bba9310f4cb65022f9e8f81698b758abd.tar.gz
emacs-bc69349bba9310f4cb65022f9e8f81698b758abd.zip
(win32_wait): Massage retval into what is expected in Unix.
Diffstat (limited to 'src')
-rw-r--r--src/w32proc.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/w32proc.c b/src/w32proc.c
index e7834d6a452..1aa5a0cc6bb 100644
--- a/src/w32proc.c
+++ b/src/w32proc.c
@@ -395,7 +395,16 @@ win32_wait (int *status)
395 errno = EINVAL; 395 errno = EINVAL;
396 return -1; 396 return -1;
397 } 397 }
398 398
399 /* Massage the exit code from the process to match the format expected
400 by the WIFSTOPPED et al macros in syswait.h. Only WIFSIGNALLED and
401 WIFEXITED are supported; WIFSTOPPED doesn't make sense under NT. */
402
403 if (retval == STATUS_CONTROL_C_EXIT)
404 retval = SIGINT;
405 else
406 retval <<= 8;
407
399 cp = cps[active]; 408 cp = cps[active];
400 409
401 if (status) 410 if (status)