mirror of
git://sourceware.org/git/newlib-cygwin.git
synced 2025-01-20 05:19:21 +08:00
* winsup.api/resethand.c (main): Remove core dump flag from exit status.
This commit is contained in:
parent
590129475b
commit
b0b9ccf618
@ -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>
|
2006-01-01 Christopher Faylor <cgf@timesys.com>
|
||||||
|
|
||||||
* winsup.api/resethand.c (main): Coerce argument to pointer to stop gcc
|
* winsup.api/resethand.c (main): Coerce argument to pointer to stop gcc
|
||||||
|
@ -31,6 +31,7 @@ main (int argc, char **argv)
|
|||||||
*i = 9;
|
*i = 9;
|
||||||
exit (0x42);
|
exit (0x42);
|
||||||
}
|
}
|
||||||
|
status &= ~0x80; // remove core dump flag
|
||||||
fprintf (stderr, "pid %d exited with status %p\n", pid, (void *) status);
|
fprintf (stderr, "pid %d exited with status %p\n", pid, (void *) status);
|
||||||
exit (argc == 1 ? !(status == SIGSEGV) : !(status == SIGTERM));
|
exit (argc == 1 ? !(status == SIGSEGV) : !(status == SIGTERM));
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user