forked from fish-shell/fish-shell
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes job handling involving functions and terminal control
While the idiomatic fix to fish' myriad of job control issues would be to parse all functions prior to beginning the job pipeline so that everything in the command line can be executed in the context of a single job, that would require a huge effort to rewrite the core job flow in fish and does not make sense at this time. Instead, this patch fixes fish-shell#3952 and fish-shell#206 (but notably not fish-shell#4238) by having jobs that are part of a single command pipeline, including those that are functions executing external commands, use the same process group. This prevents a (parent|child) from crashing with SIGTTIN or hanging at SIGTTOU because it has a different process group than the process currently in control of the terminal. Additionally, since this fix involves removing the code that forces fish to run in its own process group (which IMHO never made sense, as job control is the job of the shell, not the process being launched), it also fixes fish-shell#3805 and works around BashOnWindows#1653.
- Loading branch information
Showing
3 changed files
with
43 additions
and
46 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