summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPanu Matilainen <pmatilai@redhat.com>2008-11-19 08:16:03 +0200
committerPanu Matilainen <pmatilai@redhat.com>2008-11-19 08:16:03 +0200
commit140f0c8c8339524968e9ca595fabe9a28b38f49f (patch)
tree8bca7dc5a8ac65fceb7e0db10854f679a0e00f31
parent2ca4430dd7d9c295b97cd2362a91dfe3f8819ab3 (diff)
downloadrpm-140f0c8c8339524968e9ca595fabe9a28b38f49f.tar.gz
rpm-140f0c8c8339524968e9ca595fabe9a28b38f49f.tar.bz2
rpm-140f0c8c8339524968e9ca595fabe9a28b38f49f.zip
Restore SIGPIPE to default action for scriptlets (rhbz#471591)
-rw-r--r--lib/psm.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/psm.c b/lib/psm.c
index 58fa059da..f3234e1f3 100644
--- a/lib/psm.c
+++ b/lib/psm.c
@@ -523,6 +523,7 @@ static void doScriptExec(rpmts ts, ARGV_const_t argv, rpmtd prefixes,
int xx;
int open_max;
+ (void) signal(SIGPIPE, SIG_DFL);
pipes[0] = pipes[1] = 0;
/* make stdin inaccessible */
xx = pipe(pipes);