Avoid exiting too early due to nested rpmdbCheckSignals()
authorPanu Matilainen <pmatilai@redhat.com>
Tue, 18 Dec 2007 19:33:40 +0000 (21:33 +0200)
committerPanu Matilainen <pmatilai@redhat.com>
Tue, 18 Dec 2007 19:33:40 +0000 (21:33 +0200)
rpmdb/rpmdb.c

index 3f8ad49..5122d71 100644 (file)
@@ -621,7 +621,7 @@ int rpmdbCheckTerminate(int terminate)
     sigset_t newMask, oldMask;
     static int terminating = 0;
 
-    if (terminating) return 1;
+    if (terminating) return 0;
 
     (void) sigfillset(&newMask);               /* block all signals */
     (void) sigprocmask(SIG_BLOCK, &newMask, &oldMask);