-
-
Notifications
You must be signed in to change notification settings - Fork 164
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[signal-handling] Fix exit code of 'wait' on trapped signal.
This completes a fix for 'wait builtin should be interruptible'. That wasn't entirely correct. Also add tests case for SIGINT. - SIGINT when trapped correctly gives status=130 - SIGINT when not trapped doesn't give the right status. This has to do with KeyboardInterrupt. So yes we should always trap it! This is #896. Also suppress color in test/interactive then output isn't a TTY.
- Loading branch information
Andy C
committed
Jan 27, 2022
1 parent
d22664a
commit 985de3c
Showing
2 changed files
with
62 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters