mirror of
https://github.com/fish-shell/fish-shell
synced 2025-01-13 05:28:49 +00:00
reader.cpp: during forced exit, send SIGHUP to foreground processes only
Closes #1771.
This commit is contained in:
parent
b9bd0166b6
commit
bff68f3bfc
1 changed files with 5 additions and 1 deletions
|
@ -2900,7 +2900,11 @@ static void handle_end_loop()
|
|||
job_iterator_t jobs;
|
||||
while ((j = jobs.next()))
|
||||
{
|
||||
if (! job_is_completed(j))
|
||||
/* Send SIGHUP only to foreground processes.
|
||||
|
||||
See https://github.com/fish-shell/fish-shell/issues/1771
|
||||
*/
|
||||
if (! job_is_completed(j) && job_get_flag(j, JOB_FOREGROUND))
|
||||
{
|
||||
job_signal(j, SIGHUP);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue