mirror of
https://github.com/tmate-io/tmate.git
synced 2024-11-08 17:24:22 +01:00
Sync OpenBSD patchset 625:
Ignore SIGHUP as well.
This commit is contained in:
parent
4e28426c0d
commit
3116e3ce21
6
server.c
6
server.c
@ -1,4 +1,4 @@
|
||||
/* $Id: server.c,v 1.232 2009-12-04 22:14:47 tcunha Exp $ */
|
||||
/* $Id: server.c,v 1.233 2010-02-02 23:50:01 tcunha Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
|
||||
@ -374,6 +374,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);
|
||||
@ -401,6 +403,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);
|
||||
|
Loading…
Reference in New Issue
Block a user