summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJudd Vinet <judd@archlinux.org>2006-07-15 01:15:07 +0200
committerJudd Vinet <judd@archlinux.org>2006-07-15 01:15:07 +0200
commit54008798efcc9646f622f6b052ecd83281d57cda (patch)
treef50aeec616897699713156468943dfc8f9923178 /src
parent318e233cb38635581b14e081c22e369265c753b8 (diff)
downloadpacman-54008798efcc9646f622f6b052ecd83281d57cda.tar.gz
pacman-54008798efcc9646f622f6b052ecd83281d57cda.tar.xz
Patch from FW: Better control over CTRL-C interruptions -- do not leave the DB in an inconsistent state
Diffstat (limited to 'src')
-rw-r--r--src/pacman/pacman.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/pacman/pacman.c b/src/pacman/pacman.c
index 381053a3..89593e3b 100644
--- a/src/pacman/pacman.c
+++ b/src/pacman/pacman.c
@@ -338,6 +338,9 @@ static void cleanup(int signum)
{
list_t *lp;
+ if((signum == SIGINT) && (alpm_trans_release() == -1)) {
+ return;
+ }
if(signum != 0 && config->op_d_vertest == 0) {
fprintf(stderr, "\n");
}