Cygwin: pinfo: Fix exit code when non-cygwin app exits by Ctrl-C.
- Previously, if non-cygwin app exits by Ctrl-C, exit code was 0x00007f00. With this patch, the exit code will be 0x00000002, which means process exited by SIGINT.
This commit is contained in:
parent
85f2dca52d
commit
3a6b11c697
|
@ -156,6 +156,9 @@ pinfo::status_exit (DWORD x)
|
||||||
a lengthy small_printf instead. */
|
a lengthy small_printf instead. */
|
||||||
x = SIGBUS;
|
x = SIGBUS;
|
||||||
break;
|
break;
|
||||||
|
case STATUS_CONTROL_C_EXIT:
|
||||||
|
x = SIGINT;
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
debug_printf ("*** STATUS_%y\n", x);
|
debug_printf ("*** STATUS_%y\n", x);
|
||||||
x = 127 << 8;
|
x = 127 << 8;
|
||||||
|
|
Loading…
Reference in New Issue