* winsup.api/resethand.c (main): Remove core dump flag from exit status.

This commit is contained in:
Christopher Faylor 2006-01-02 04:01:22 +00:00
parent 590129475b
commit b0b9ccf618
2 changed files with 6 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2006-01-01 Christopher Faylor <cgf@timesys.com>
* winsup.api/resethand.c (main): Remove core dump flag from exit
status.
2006-01-01 Christopher Faylor <cgf@timesys.com>
* winsup.api/resethand.c (main): Coerce argument to pointer to stop gcc

View File

@ -31,6 +31,7 @@ main (int argc, char **argv)
*i = 9;
exit (0x42);
}
status &= ~0x80; // remove core dump flag
fprintf (stderr, "pid %d exited with status %p\n", pid, (void *) status);
exit (argc == 1 ? !(status == SIGSEGV) : !(status == SIGTERM));
}