-
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.
Browse files
Browse the repository at this point in the history
The kludge added in the first referenced commit was one I found experimentally without understanding it properly at the time. It was necessary because the Red Hat patch kept the subsequent siglongjmp() after changing the sh_fault() call to killpg(). But changing it to killpg() made the siglongjmp inappropriate either way: it is not reached if SIGINT is handled, and it should not be executed if SIGINT is ignored. So, that kludge was actually a compensation for the latter case. src/cmd/ksh93/edit/edit.c: - Remove the siglongjmp() call so that ed_getchar() simply continues as if nothing happened if the killpg() call returns. This means the interrupt character is now ignored properly along with SIGINT and longer causes a new prompt to be started. (If the interrupt character hasn't been changed from the default Ctrl+C using 'stty intr', then in emacs, the Ctrl+C feature (capitalise current character) is exposed as a result.) src/cmd/ksh93/sh/main.c: - Remove the kludge added to exfile().
- Loading branch information
Showing
4 changed files
with
23 additions
and
24 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
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