-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
package: fix SIGINT and SIGHUP handling
The package script was not well behaved with these. When you pressed Ctrl+C, on some shells (including ksh) both the SIGINT (2) and EXIT (0) traps are activated, showing a double 'make done' message. The exit status also wasn't > 128 to indicate a signal. bin/package, src/cmd/INIT/package.sh: - Be UNIXly well-behaved. Signals should be passed on after handling, so when one is caught, make the trap handlers print their message and then unset both itself and EXIT/0 before resending the signal to self.
- Loading branch information
Showing
2 changed files
with
10 additions
and
4 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