From: Denys Vlasenko Date: Fri, 4 Dec 2009 03:18:31 +0000 (+0100) Subject: ash: re-enable SIGHUP on entry. Closes bug 771. X-Git-Tag: 1_16_0~164 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=7a7b034482b1ecf4f9924160757339958f1f95d1;p=oweals%2Fbusybox.git ash: re-enable SIGHUP on entry. Closes bug 771. Signed-off-by: Denys Vlasenko --- diff --git a/shell/ash.c b/shell/ash.c index cf406a42e..5d0fc6d29 100644 --- a/shell/ash.c +++ b/shell/ash.c @@ -13016,6 +13016,10 @@ init(void) /* 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: */ {