diff options
-rw-r--r-- | lib/rpmscript.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/rpmscript.c b/lib/rpmscript.c index dbc7b0bbd..a37e98bac 100644 --- a/lib/rpmscript.c +++ b/lib/rpmscript.c @@ -161,8 +161,10 @@ static void doScriptExec(ARGV_const_t argv, ARGV_const_t prefixes, int xx; sigset_t set; - /* Unmask all signals, the scripts may need them */ + /* Unmask most signals, the scripts may need them */ sigfillset(&set); + sigdelset(&set, SIGINT); + sigdelset(&set, SIGQUIT); sigprocmask(SIG_UNBLOCK, &set, NULL); /* SIGPIPE is ignored in rpm, reset to default for the scriptlet */ |