summaryrefslogtreecommitdiff
path: root/src/daemontools-extras/s6-log.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/daemontools-extras/s6-log.c')
-rw-r--r--src/daemontools-extras/s6-log.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/daemontools-extras/s6-log.c b/src/daemontools-extras/s6-log.c
index a20562a..6d323b7 100644
--- a/src/daemontools-extras/s6-log.c
+++ b/src/daemontools-extras/s6-log.c
@@ -1130,12 +1130,11 @@ static inline void handle_signals (void)
break ;
}
case SIGTERM :
- {
if (flagprotect) break ;
+ case SIGHUP :
handle_stdin = &last_stdin ;
if (!indata.len) prepare_to_exit() ;
break ;
- }
case SIGCHLD :
{
for (;;)
@@ -1206,6 +1205,7 @@ int main (int argc, char const *const *argv)
sigset_t set ;
sigemptyset(&set) ;
sigaddset(&set, SIGTERM) ;
+ sigaddset(&set, SIGHUP) ;
sigaddset(&set, SIGALRM) ;
sigaddset(&set, SIGCHLD) ;
if (selfpipe_trapset(&set) < 0)