[git commit master] ash: re-enable SIGHUP on entry. Closes bug 771.
Denys Vlasenko
vda.linux at googlemail.com
Fri Dec 4 03:18:31 UTC 2009
commit: http://git.busybox.net/busybox/commit/?id=7a7b034482b1ecf4f9924160757339958f1f95d1
branch: http://git.busybox.net/busybox/commit/?id=refs/heads/master
Signed-off-by: Denys Vlasenko <vda.linux at googlemail.com>
---
shell/ash.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
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 @@ 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: */
{
--
1.6.3.3
More information about the busybox-cvs
mailing list