From 3e6009a7440ea5fc3edc21bfe299288018e4e3ea Mon Sep 17 00:00:00 2001 From: Panu Matilainen Date: Fri, 2 May 2008 11:40:29 +0300 Subject: [PATCH] Ensure default SIGPIPE handler for --pipe (rhbz#444389) --- rpmqv.c | 1 + 1 file changed, 1 insertion(+) diff --git a/rpmqv.c b/rpmqv.c index 400b816..1d8c2fc 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]); -- 2.7.4