From 8ecf69ed6236c308f183125301fa571c4e21491f Mon Sep 17 00:00:00 2001 From: Panu Matilainen Date: Thu, 8 May 2008 13:35:27 +0300 Subject: Block signals while moving the rpmdb to final location after rebuild - interrupt there would be pretty disastrous.. --- rpmdb/rpmdb.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/rpmdb/rpmdb.c b/rpmdb/rpmdb.c index b51af60a4..2bff34eb4 100644 --- a/rpmdb/rpmdb.c +++ b/rpmdb/rpmdb.c @@ -3257,7 +3257,9 @@ static int rpmdbMoveDatabase(const char * prefix, int rc = 0; int xx; int selinux = is_selinux_enabled() && (matchpathcon_init(NULL) != -1); + sigset_t sigMask; + blockSignals(&sigMask); switch (_olddbapi) { case 4: /* Fall through */ @@ -3319,6 +3321,8 @@ cont: case 0: break; } + unblockSignals(&sigMask); + #ifdef SQLITE_HACK_XXX if (rc || _olddbapi == _newdbapi) return rc; -- cgit v1.2.3