mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-25 18:03:37 +08: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
|
@ -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 New Issue
Block a user