index : pacman | |
Archlinux32 fork of pacman | gitolite user |
summaryrefslogtreecommitdiff |
author | Silvan Jegen <s.jegen@gmail.com> | 2014-06-23 17:51:05 +0200 |
---|---|---|
committer | Allan McRae <allan@archlinux.org> | 2014-06-24 15:53:18 +1000 |
commit | fa0c1e1419b4a73b4a522bc6f4117b8bf337eabe (patch) | |
tree | 667eeb70326f174980a8753e63fcb9208d2fdf85 | |
parent | 8dbb80cfe9e80a5b70ada4e0b58c97a28a9fc7f7 (diff) |
-rw-r--r-- | src/pacman/pacman.c | 6 |
diff --git a/src/pacman/pacman.c b/src/pacman/pacman.c index 783c30bf..e8c5f9e3 100644 --- a/src/pacman/pacman.c +++ b/src/pacman/pacman.c @@ -301,7 +301,7 @@ static void handler(int signum) "Please submit a full bug report with --debug if appropriate.\n"; xwrite(err, msg, strlen(msg)); exit(signum); - } else if(signum == SIGINT || signum == SIGHUP) { + } else if(signum != SIGTERM) { if(signum == SIGINT) { msg = "\nInterrupt signal received\n"; } else { @@ -313,8 +313,8 @@ static void handler(int signum) return; } } - /* SIGINT: no committing transaction, release it now and then exit pacman - * SIGHUP, SIGTERM: release no matter what */ + /* SIGINT/SIGHUP: no committing transaction, release it now and then exit pacman + * SIGTERM: release no matter what */ alpm_trans_release(config->handle); /* output a newline to be sure we clear any line we may be on */ xwrite(out, "\n", 1); |