Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions tcp_server/tcp_server.c
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,8 @@ static void setup_signal_handler(void)
child_act.sa_flags |= SA_NOCLDWAIT; //avoid needing to reap children processes
if(0 > sigaction(SIGCHLD, &child_act, NULL))
err(1, "failed to set signal action for SIGCHLD (this is a bug)");
if(SIG_ERR == signal(SIGTERM, _Exit))
err(1, "failed to set handler for SIGTERM (this is a bug)");
}

static void setup_chroot(const char *chroot_path)
Expand Down