summaryrefslogtreecommitdiff
path: root/usr.bin/tmux
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@cvs.openbsd.org>2010-01-30 19:05:19 +0000
committerNicholas Marriott <nicm@cvs.openbsd.org>2010-01-30 19:05:19 +0000
commit004204998c18d170698ed39f29c809f86903d161 (patch)
treea2af0b110d7bf6997b5dcd30c5d5e4e830bbfddf /usr.bin/tmux
parent8e0ddfe0bf990489c67ff9e1fd28edbffd463c48 (diff)
Ignore SIGHUP as well.
Diffstat (limited to 'usr.bin/tmux')
-rw-r--r--usr.bin/tmux/server.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/usr.bin/tmux/server.c b/usr.bin/tmux/server.c
index deea9a29096..18ed3f6ee66 100644
--- a/usr.bin/tmux/server.c
+++ b/usr.bin/tmux/server.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: server.c,v 1.80 2009/12/03 22:50:10 nicm Exp $ */
+/* $OpenBSD: server.c,v 1.81 2010/01/30 19:05:18 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -356,6 +356,8 @@ server_signal_set(void)
fatal("sigaction failed");
if (sigaction(SIGTSTP, &sigact, NULL) != 0)
fatal("sigaction failed");
+ if (sigaction(SIGHUP, &sigact, NULL) != 0)
+ fatal("sigaction failed");
signal_set(&server_ev_sigchld, SIGCHLD, server_signal_callback, NULL);
signal_add(&server_ev_sigchld, NULL);
@@ -383,6 +385,8 @@ server_signal_clear(void)
fatal("sigaction failed");
if (sigaction(SIGTSTP, &sigact, NULL) != 0)
fatal("sigaction failed");
+ if (sigaction(SIGHUP, &sigact, NULL) != 0)
+ fatal("sigaction failed");
signal_del(&server_ev_sigchld);
signal_del(&server_ev_sigterm);