Re: [PATCH v2] Cygwin: pinfo: Fix exit code when non-cygwin app exits by Ctrl-C.

2022-02-24 Thread Corinna Vinschen
On Feb 24 23:24, Takashi Yano wrote: > - Previously, if non-cygwin app exits by Ctrl-C, exit code was > 0x7f00. With this patch, the exit code will be 0x0002, > which means process exited by SIGINT. > --- > winsup/cygwin/exceptions.cc | 6 +- > winsup/cygwin/pinfo.cc | 3 +++ >

[PATCH v2] Cygwin: pinfo: Fix exit code when non-cygwin app exits by Ctrl-C.

2022-02-24 Thread Takashi Yano
- Previously, if non-cygwin app exits by Ctrl-C, exit code was 0x7f00. With this patch, the exit code will be 0x0002, which means process exited by SIGINT. --- winsup/cygwin/exceptions.cc | 6 +- winsup/cygwin/pinfo.cc | 3 +++ 2 files changed, 8 insertions(+), 1 deletion(-)

Re: [PATCH] Cygwin: pinfo: Fix exit code when non-cygwin app exits by Ctrl-C.

2022-02-24 Thread Takashi Yano
On Thu, 24 Feb 2022 22:43:35 +0900 Takashi Yano wrote: > - Previously, if non-cygwin app exits by Ctrl-C, exit code was > 0x7f00. With this patch, the exit code will be 0x0002, > which means process exited by SIGINT. > --- > winsup/cygwin/pinfo.cc | 3 +++ > 1 file changed, 3 insertion

[PATCH] Cygwin: pinfo: Fix exit code when non-cygwin app exits by Ctrl-C.

2022-02-24 Thread Takashi Yano
- Previously, if non-cygwin app exits by Ctrl-C, exit code was 0x7f00. With this patch, the exit code will be 0x0002, which means process exited by SIGINT. --- winsup/cygwin/pinfo.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/winsup/cygwin/pinfo.cc b/winsup/cygwin/pinfo.cc

[PATCH] Cygwin: console: Restore CTRL_BREAK_EVENT handling.

2022-02-24 Thread Takashi Yano
- The recent change by the commit "Cygwin: console: Redesign handling of special keys." breaks the handling of CTRL_BREAK_EVENT. The login shell in console exits on Ctrl-Break key. This patch fixes the issue. --- winsup/cygwin/exceptions.cc | 13 ++--- winsup/cygwin/fhandler_cons