From 004204998c18d170698ed39f29c809f86903d161 Mon Sep 17 00:00:00 2001 From: Nicholas Marriott Date: Sat, 30 Jan 2010 19:05:19 +0000 Subject: Ignore SIGHUP as well. --- usr.bin/tmux/server.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'usr.bin/tmux') 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 @@ -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); -- cgit v1.2.3