projects
/
tools
/
librpm-tizen.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0af31c9
)
Block signals while moving the rpmdb to final location after rebuild
author
Panu Matilainen
<pmatilai@redhat.com>
Thu, 8 May 2008 10:35:27 +0000
(13:35 +0300)
committer
Panu Matilainen
<pmatilai@redhat.com>
Thu, 8 May 2008 10:35:27 +0000
(13:35 +0300)
- interrupt there would be pretty disastrous..
rpmdb/rpmdb.c
patch
|
blob
|
history
diff --git
a/rpmdb/rpmdb.c
b/rpmdb/rpmdb.c
index
b51af60
..
2bff34e
100644
(file)
--- 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;