From f6c8665a72c3ecadf0b24029f7c6840aafd33c81 Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Fri, 1 Apr 2011 15:26:46 +0100 Subject: [PATCH] daemon: Reset SIGPIPE to default before running subprocesses. (cherry picked from commit 42938f6faf9e724130be28f8e67d3c291bb81cba) --- daemon/guestfsd.c | 1 + 1 file changed, 1 insertion(+) diff --git a/daemon/guestfsd.c b/daemon/guestfsd.c index 6a9b60d..977f170 100644 --- a/daemon/guestfsd.c +++ b/daemon/guestfsd.c @@ -694,6 +694,7 @@ commandrvf (char **stdoutput, char **stderror, int flags, } if (pid == 0) { /* Child process running the command. */ + signal (SIGPIPE, SIG_DFL); close (0); if (flag_copy_stdin) { dup2 (stdin_fd[0], 0); -- 1.8.3.1