* winsup.api/resethand.c (main): Remove core dump flag from exit status.
This commit is contained in:
		| @@ -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 | ||||
|   | ||||
| @@ -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)); | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user