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:
Takashi Yano 2022-02-24 21:04:49 +09:00
parent 85f2dca52d
commit 3a6b11c697
1 changed files with 3 additions and 0 deletions

View File

@ -156,6 +156,9 @@ pinfo::status_exit (DWORD x)
a lengthy small_printf instead. */
x = SIGBUS;
break;
case STATUS_CONTROL_C_EXIT:
x = SIGINT;
break;
default:
debug_printf ("*** STATUS_%y\n", x);
x = 127 << 8;