]> sourceware.org Git - newlib-cygwin.git/commit
Cygwin: pinfo: Fix exit code for non-cygwin apps which reads console.
authorTakashi Yano <takashi.yano@nifty.ne.jp>
Sat, 26 Feb 2022 06:13:13 +0000 (15:13 +0900)
committerTakashi Yano <takashi.yano@nifty.ne.jp>
Mon, 28 Feb 2022 11:10:02 +0000 (20:10 +0900)
commitf6db6f52aeec3a326a216530978ce8a4bea25cf0
tree19bff664bf11cb10512f4b363bdef5068abe0d44
parent15a35758d8490368fedfe595246b100c7af59a11
Cygwin: pinfo: Fix exit code for non-cygwin apps which reads console.

- The recent commit "Cygwin: pinfo: Fix exit code when non-cygwin app
  exits by Ctrl-C." did not fix enough the issue. If a non-cygwin app
  is reading the console, it will not return STATUS_CONTROL_C_EXIT
  even if it is terminated by Ctrl-C. As a result, the previous patch
  does not take effect.
  This patch solves this issue by setting sigExeced to SIGINT in
  ctrl_c_handler(). In addition, sigExeced will be cleared if the app
  does not terminated within predetermined time period. The reason is
  that the app does not seem to be terminated by the signal sigExeced.
winsup/cygwin/exceptions.cc
winsup/cygwin/globals.cc
winsup/cygwin/spawn.cc
This page took 0.030829 seconds and 5 git commands to generate.