summaryrefslogtreecommitdiff
path: root/rpmqv.c
diff options
context:
space:
mode:
authorPanu Matilainen <pmatilai@redhat.com>2008-05-02 11:40:29 +0300
committerPanu Matilainen <pmatilai@redhat.com>2008-05-02 11:40:29 +0300
commit3e6009a7440ea5fc3edc21bfe299288018e4e3ea (patch)
tree509f1896ff983b4473b78efd535f22418cd2bd41 /rpmqv.c
parenta306a04a895a1632ad80753c61e57864f0019441 (diff)
downloadlibrpm-tizen-3e6009a7440ea5fc3edc21bfe299288018e4e3ea.tar.gz
librpm-tizen-3e6009a7440ea5fc3edc21bfe299288018e4e3ea.tar.bz2
librpm-tizen-3e6009a7440ea5fc3edc21bfe299288018e4e3ea.zip
Ensure default SIGPIPE handler for --pipe (rhbz#444389)
Diffstat (limited to 'rpmqv.c')
-rw-r--r--rpmqv.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/rpmqv.c b/rpmqv.c
index 400b81687..1d8c2fc05 100644
--- a/rpmqv.c
+++ b/rpmqv.c
@@ -583,6 +583,7 @@ int main(int argc, char *argv[])
(void) pipe(p);
if (!(pipeChild = fork())) {
+ (void) signal(SIGPIPE, SIG_DFL);
(void) close(p[1]);
(void) dup2(p[0], STDIN_FILENO);
(void) close(p[0]);