diff options
author | Richard W.M. Jones <rjones@redhat.com> | 2011-04-01 15:26:46 +0100 |
---|---|---|
committer | Richard W.M. Jones <rjones@redhat.com> | 2011-04-01 16:05:30 +0100 |
commit | 42938f6faf9e724130be28f8e67d3c291bb81cba (patch) | |
tree | f4ee64aebccb22f7b92d4d397408dcfcd793008a /daemon | |
parent | 371eabfae3790588ed97c0017d2882799c7ea871 (diff) | |
download | libguestfs-42938f6faf9e724130be28f8e67d3c291bb81cba.tar.gz libguestfs-42938f6faf9e724130be28f8e67d3c291bb81cba.tar.xz libguestfs-42938f6faf9e724130be28f8e67d3c291bb81cba.zip |
daemon: Reset SIGPIPE to default before running subprocesses.
Diffstat (limited to 'daemon')
-rw-r--r-- | daemon/guestfsd.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/daemon/guestfsd.c b/daemon/guestfsd.c index 1af0f7a7..36328893 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); |