From 54008798efcc9646f622f6b052ecd83281d57cda Mon Sep 17 00:00:00 2001 From: Judd Vinet Date: Fri, 14 Jul 2006 23:15:07 +0000 Subject: Patch from FW: Better control over CTRL-C interruptions -- do not leave the DB in an inconsistent state --- src/pacman/pacman.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src') 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"); } -- cgit v1.2.3-24-g4f1b