From 3e6009a7440ea5fc3edc21bfe299288018e4e3ea Mon Sep 17 00:00:00 2001 From: Panu Matilainen Date: Fri, 2 May 2008 11:40:29 +0300 Subject: Ensure default SIGPIPE handler for --pipe (rhbz#444389) --- rpmqv.c | 1 + 1 file changed, 1 insertion(+) (limited to 'rpmqv.c') 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]); -- cgit v1.2.3