From: Richard W.M. Jones Date: Fri, 1 Apr 2011 14:26:46 +0000 (+0100) Subject: daemon: Reset SIGPIPE to default before running subprocesses. X-Git-Tag: 1.9.16~6 X-Git-Url: http://git.annexia.org/?a=commitdiff_plain;h=42938f6faf9e724130be28f8e67d3c291bb81cba;p=libguestfs.git daemon: Reset SIGPIPE to default before running subprocesses. --- diff --git a/daemon/guestfsd.c b/daemon/guestfsd.c index 1af0f7a..3632889 100644 --- a/daemon/guestfsd.c +++ b/daemon/guestfsd.c @@ -679,6 +679,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);