diff options
author | Nicholas Marriott <nicm@cvs.openbsd.org> | 2010-01-30 19:05:19 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@cvs.openbsd.org> | 2010-01-30 19:05:19 +0000 |
commit | 004204998c18d170698ed39f29c809f86903d161 (patch) | |
tree | a2af0b110d7bf6997b5dcd30c5d5e4e830bbfddf /usr.bin/tmux | |
parent | 8e0ddfe0bf990489c67ff9e1fd28edbffd463c48 (diff) |
Ignore SIGHUP as well.
Diffstat (limited to 'usr.bin/tmux')
-rw-r--r-- | usr.bin/tmux/server.c | 6 |
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); |