]> git.g-eek.se Git - interimap.git/commitdiff
Exit with return value 0 when receiving a TERM signal.
authorGuilhem Moulin <guilhem@fripost.org>
Wed, 9 Sep 2015 21:32:41 +0000 (23:32 +0200)
committerGuilhem Moulin <guilhem@fripost.org>
Wed, 9 Sep 2015 21:33:23 +0000 (23:33 +0200)
Changelog
interimap

index 5b010d2d4eaf27444ef9bd1ba3615309f2fa26f1..a188c185a4d17bc2ce1a464d0d2a72bcb0b5fbe6 100644 (file)
--- a/Changelog
+++ b/Changelog
@@ -10,6 +10,7 @@ interimap (0.2) upstream
     default if both the local and remote servers advertize "BINARY".
        Can be disabled by adding 'use-binary=NO' to the default section in
        the configuration file.
+  * Exit with return value 0 when receiving a TERM signal.
 
  -- Guilhem Moulin <guilhem@guilhem.org>  Wed, 09 Sep 2015 00:44:35 +0200
 
index c5de2ce9be1dbe7c91ac8535038fb072eec67048..2c72d5617e5e80bcc42b172c6183d4155aa15ef8 100755 (executable)
--- a/interimap
+++ b/interimap
@@ -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/;
 
 
 #############################################################################