mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-26 12:53:13 +00:00
Deliver SIGHUP when we're exiting, even if stdin is not closed.
Fixes https://github.com/fish-shell/fish-shell/issues/138
This commit is contained in:
parent
ea1bfd715e
commit
4755c5f8c8
1 changed files with 5 additions and 1 deletions
|
@ -2358,7 +2358,11 @@ static void handle_end_loop()
|
|||
}
|
||||
else
|
||||
{
|
||||
if( !isatty(0) )
|
||||
/* PCA: we used to only hangup jobs if stdin was closed. This prevented child processes from exiting. It's unclear to my why it matters if stdin is closed, but it seems to me if we're forcing an exit, we definitely want to hang up our processes.
|
||||
|
||||
See https://github.com/fish-shell/fish-shell/issues/138
|
||||
*/
|
||||
if( reader_exit_forced() || !isatty(0) )
|
||||
{
|
||||
/*
|
||||
We already know that stdin is a tty since we're
|
||||
|
|
Loading…
Reference in a new issue