From 41a70f974d06e6431ba205c627c45ca101bca1dd Mon Sep 17 00:00:00 2001 From: cgf Date: Mon, 2 Jan 2006 04:01:22 +0000 Subject: [PATCH] * winsup.api/resethand.c (main): Remove core dump flag from exit status. --- winsup/testsuite/ChangeLog | 5 +++++ winsup/testsuite/winsup.api/resethand.c | 1 + 2 files changed, 6 insertions(+) diff --git a/winsup/testsuite/ChangeLog b/winsup/testsuite/ChangeLog index d766011525..6ed7c39a12 100644 --- a/winsup/testsuite/ChangeLog +++ b/winsup/testsuite/ChangeLog @@ -1,5 +1,10 @@ 2006-01-01 Christopher Faylor + * winsup.api/resethand.c (main): Remove core dump flag from exit + status. + +2006-01-01 Christopher Faylor + * winsup.api/resethand.c (main): Coerce argument to pointer to stop gcc complaint. diff --git a/winsup/testsuite/winsup.api/resethand.c b/winsup/testsuite/winsup.api/resethand.c index b2010cfe52..2d1ccabc94 100644 --- a/winsup/testsuite/winsup.api/resethand.c +++ b/winsup/testsuite/winsup.api/resethand.c @@ -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)); } -- 2.11.0