-
Notifications
You must be signed in to change notification settings - Fork 88
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix problem in getccu when ctrl-Z is entered.
getccu calls getchr which calls iread. When ctrl-Z (SIGTSTP) is entered, iread sets sigs |= S_STOP and returns READ_INTR. getchr then also returns READ_INTR. As of 2d0abe8, getccu converts any negative value like READ_INTR to a null char, which causes getccu to ignore the char and call getchr again. Before 2d0abe8 we would retain the negative char and exit the loop, but the char value was not used because the fact that sigs is set would be checked first. It seems more straightforward to just exit the getccu loop when sigs is set. Related to #563.
- Loading branch information
Showing
3 changed files
with
4 additions
and
2 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