Message ID | 20210112061119.GA1350@gondor.apana.org.au (mailing list archive) |
---|---|
State | Accepted |
Delegated to: | Herbert Xu |
Headers | show |
Series | jobs: Always reset SIGINT/SIGQUIT handlers | expand |
diff --git a/src/jobs.c b/src/jobs.c index 516786f..08c4f13 100644 --- a/src/jobs.c +++ b/src/jobs.c @@ -892,10 +892,8 @@ static void forkchild(struct job *jp, union node *n, int mode) } } if (!oldlvl && iflag) { - if (mode != FORK_BG) { - setsignal(SIGINT); - setsignal(SIGQUIT); - } + setsignal(SIGINT); + setsignal(SIGQUIT); setsignal(SIGTERM); }