=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/tmux/Attic/signal.c,v retrieving revision 1.3 retrieving revision 1.4 diff -c -r1.3 -r1.4 *** src/usr.bin/tmux/Attic/signal.c 2010/05/04 17:28:16 1.3 --- src/usr.bin/tmux/Attic/signal.c 2010/05/12 15:05:39 1.4 *************** *** 1,4 **** ! /* $Id: signal.c,v 1.3 2010/05/04 17:28:16 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott --- 1,4 ---- ! /* $Id: signal.c,v 1.4 2010/05/12 15:05:39 jsing Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott *************** *** 22,27 **** --- 22,28 ---- #include "tmux.h" + struct event ev_sighup; struct event ev_sigchld; struct event ev_sigcont; struct event ev_sigterm; *************** *** 45,53 **** fatal("sigaction failed"); if (sigaction(SIGTSTP, &sigact, NULL) != 0) fatal("sigaction failed"); - if (sigaction(SIGHUP, &sigact, NULL) != 0) - fatal("sigaction failed"); signal_set(&ev_sigchld, SIGCHLD, handler, NULL); signal_add(&ev_sigchld, NULL); signal_set(&ev_sigcont, SIGCONT, handler, NULL); --- 46,54 ---- fatal("sigaction failed"); if (sigaction(SIGTSTP, &sigact, NULL) != 0) fatal("sigaction failed"); + signal_set(&ev_sighup, SIGHUP, handler, NULL); + signal_add(&ev_sighup, NULL); signal_set(&ev_sigchld, SIGCHLD, handler, NULL); signal_add(&ev_sigchld, NULL); signal_set(&ev_sigcont, SIGCONT, handler, NULL); *************** *** 77,85 **** fatal("sigaction failed"); if (sigaction(SIGTSTP, &sigact, NULL) != 0) fatal("sigaction failed"); - if (sigaction(SIGHUP, &sigact, NULL) != 0) - fatal("sigaction failed"); event_del(&ev_sigchld); event_del(&ev_sigcont); event_del(&ev_sigterm); --- 78,85 ---- fatal("sigaction failed"); if (sigaction(SIGTSTP, &sigact, NULL) != 0) fatal("sigaction failed"); + event_del(&ev_sighup); event_del(&ev_sigchld); event_del(&ev_sigcont); event_del(&ev_sigterm);