mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-23 08:31:16 -03:00
reader.cpp: during forced exit, send SIGHUP to foreground processes only
Closes #1771.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user