diff options
author | Guilhem Moulin <guilhem@fripost.org> | 2015-09-09 23:32:41 +0200 |
---|---|---|
committer | Guilhem Moulin <guilhem@fripost.org> | 2015-09-09 23:33:23 +0200 |
commit | 5104962fbe1d9c9b602cdd4e4d9fb4d19f4f9b8c (patch) | |
tree | 638fb40fe1165b00d5697fd39bfdd972c23d82ec /interimap | |
parent | b8076acd1441bc3f12e891660ff86a166154150c (diff) |
Exit with return value 0 when receiving a TERM signal.
Diffstat (limited to 'interimap')
-rwxr-xr-x | interimap | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -118,8 +118,8 @@ sub cleanup() { close $LOGGER_FD if defined $LOGGER_FD; $DBH->disconnect() if defined $DBH; } -$SIG{$_} = sub { msg(undef, $!); cleanup(); exit 1; } foreach qw/INT TERM/; -$SIG{$_} = sub { msg(undef, $!); cleanup(); exit 0; } foreach qw/HUP/; +$SIG{$_} = sub { msg(undef, $!); cleanup(); exit 1; } foreach qw/INT/; +$SIG{$_} = sub { cleanup(); exit 0; } foreach qw/HUP TERM/; ############################################################################# |