shlist

share and manage lists between multiple people
Log | Files | Refs

commit c1c49c779bbb0c39024622fe5974fe2e5cd7fd6b
parent 772576f108002e75f783f94ab03c416b12298ba2
Author: Kyle Milz <kyle@0x30.net>
Date:   Sat, 27 Feb 2016 12:20:20 -0700

server: exit 0 on SIGTERM

Diffstat:
Mserver/sl | 1+
1 file changed, 1 insertion(+), 0 deletions(-)

diff --git a/server/sl b/server/sl @@ -53,6 +53,7 @@ $log->print_bare("accepting connections on $addr:$port (pid = '$$')\n"); # Children who have exited do not have to be waited on with this $SIG{CHLD} = 'IGNORE'; +$SIG{TERM} = sub { exit 0 }; # Accept new plain TCP connections and handle them in separate processes while (my $client_socket = $server_socket->accept()) {