diff options
author | jilles <jilles@FreeBSD.org> | 2013-02-23 22:50:57 +0000 |
---|---|---|
committer | jilles <jilles@FreeBSD.org> | 2013-02-23 22:50:57 +0000 |
commit | 6d26f3b024394ea5908af3fa212793fa333a2fdf (patch) | |
tree | 96a8314009f5f8c2883aef886d308ca958d3405c /bin/sh/jobs.c | |
parent | a615230e591865d556975a47a4dc7d5cefbf4ebd (diff) | |
download | FreeBSD-src-6d26f3b024394ea5908af3fa212793fa333a2fdf.zip FreeBSD-src-6d26f3b024394ea5908af3fa212793fa333a2fdf.tar.gz |
sh: If a SIGINT or SIGQUIT interrupts "wait", return status 128+sig.
Diffstat (limited to 'bin/sh/jobs.c')
-rw-r--r-- | bin/sh/jobs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/sh/jobs.c b/bin/sh/jobs.c index c86394f..5a2790b 100644 --- a/bin/sh/jobs.c +++ b/bin/sh/jobs.c @@ -521,7 +521,7 @@ waitcmd(int argc, char **argv) } while (dowait(DOWAIT_BLOCK | DOWAIT_SIG, (struct job *)NULL) != -1); in_waitcmd--; - return 0; + return pendingsig + 128; } |