commit | 7a7b034482b1ecf4f9924160757339958f1f95d1 | [log] [tgz] |
---|---|---|
author | Denys Vlasenko <vda.linux@googlemail.com> | Fri Dec 04 04:18:31 2009 +0100 |
committer | Denys Vlasenko <vda.linux@googlemail.com> | Fri Dec 04 04:18:31 2009 +0100 |
tree | d6d94edd1b8de80fcdbdd876407752dcc4456b85 | |
parent | 6b5accbfc1f721c5c34b8a3bfad07a19053946d0 [diff] [blame] |
ash: re-enable SIGHUP on entry. Closes bug 771. Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
diff --git a/shell/ash.c b/shell/ash.c index cf406a4..5d0fc6d 100644 --- a/shell/ash.c +++ b/shell/ash.c
@@ -13016,6 +13016,10 @@ /* from trap.c: */ signal(SIGCHLD, SIG_DFL); + /* bash re-enables SIGHUP which is SIG_IGNed on entry. + * Try: "trap '' HUP; bash; echo RET" and type "kill -HUP $$" + */ + signal(SIGHUP, SIG_DFL); /* from var.c: */ {