Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/pacman/pacman.c6
1 files changed, 3 insertions, 3 deletions
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);