git.annexia.org
/
libguestfs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2b0f806
)
daemon: Reset SIGPIPE to default before running subprocesses.
author
Richard W.M. Jones
<rjones@redhat.com>
Fri, 1 Apr 2011 14:26:46 +0000
(15:26 +0100)
committer
Richard W.M. Jones
<rjones@redhat.com>
Mon, 11 Apr 2011 10:07:32 +0000
(11:07 +0100)
(cherry picked from commit
42938f6faf9e724130be28f8e67d3c291bb81cba
)
daemon/guestfsd.c
patch
|
blob
|
history
diff --git
a/daemon/guestfsd.c
b/daemon/guestfsd.c
index
6a9b60d
..
977f170
100644
(file)
--- 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);