comparison 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
comparison
equal deleted inserted replaced
12324:41bd44279127 12325:aa6fc4e97a28
393 /* Should never happen */ 393 /* Should never happen */
394 DebPrint (("Wait.WaitForMultipleObjects returned an active process\n")); 394 DebPrint (("Wait.WaitForMultipleObjects returned an active process\n"));
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)
402 { 411 {
403 *status = retval; 412 *status = retval;