summaryrefslogtreecommitdiff
path: root/rpmdb/rpmdb.c
diff options
context:
space:
mode:
authorPanu Matilainen <pmatilai@redhat.com>2008-05-08 13:35:27 +0300
committerPanu Matilainen <pmatilai@redhat.com>2008-05-08 13:35:27 +0300
commit8ecf69ed6236c308f183125301fa571c4e21491f (patch)
tree486cf4a42eedb8899bc1e4c8148de4e8071a9e68 /rpmdb/rpmdb.c
parent0af31c915e01b08f6efb044ac24a799c6b375410 (diff)
downloadlibrpm-tizen-8ecf69ed6236c308f183125301fa571c4e21491f.tar.gz
librpm-tizen-8ecf69ed6236c308f183125301fa571c4e21491f.tar.bz2
librpm-tizen-8ecf69ed6236c308f183125301fa571c4e21491f.zip
Block signals while moving the rpmdb to final location after rebuild
- interrupt there would be pretty disastrous..
Diffstat (limited to 'rpmdb/rpmdb.c')
-rw-r--r--rpmdb/rpmdb.c4
1 files changed, 4 insertions, 0 deletions
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;