diff --git a/bin/sh/jobs.c b/bin/sh/jobs.c index 753cf7bd931f..b531231e4a59 100644 --- a/bin/sh/jobs.c +++ b/bin/sh/jobs.c @@ -1057,7 +1057,7 @@ waitforjob(struct job *jp, int *origstatus) CLEAR_PENDING_INT; } #if JOBS - else if (rootshell && iflag && propagate_int && + else if (rootshell && propagate_int && WIFSIGNALED(status) && WTERMSIG(status) == SIGINT) kill(getpid(), SIGINT); #endif