]> CyberLeo.Net >> Repos - FreeBSD/stable/8.git/commit
MFC r208881: sh: Pass through SIGINT if interactive and job control
authorjilles <jilles@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Thu, 29 Jul 2010 16:55:27 +0000 (16:55 +0000)
committerjilles <jilles@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Thu, 29 Jul 2010 16:55:27 +0000 (16:55 +0000)
commit7c9158d97c9f180edbf6ce84ed475d085a35a82f
tree86d652bcc9c37070c319bcd6364e63edb197a0dc
parentda3034b4c5823f009dbe23b86c37b77670f51e8e
MFC r208881: sh: Pass through SIGINT if interactive and job control
is enabled.

This already worked if without job control.

In either case, this depends on it that a process that terminates due to
SIGINT exits on it (so not with status 1, or worse, 0).

Example:
  sleep 5; echo continued
This does not print "continued" any more if sleep is aborted via ctrl+c.

git-svn-id: svn://svn.freebsd.org/base/stable/8@210616 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
bin/sh/jobs.c