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:
b20a091
)
daemon/Win32: Don't bother blocking SIGPIPE on Win32.
author
Richard Jones
<rjones@redhat.com>
Wed, 25 Nov 2009 14:40:52 +0000
(14:40 +0000)
committer
Richard Jones
<rjones@redhat.com>
Wed, 25 Nov 2009 16:28:26 +0000
(16:28 +0000)
daemon/guestfsd.c
patch
|
blob
|
history
diff --git
a/daemon/guestfsd.c
b/daemon/guestfsd.c
index
e6384d2
..
67206d0
100644
(file)
--- a/
daemon/guestfsd.c
+++ b/
daemon/guestfsd.c
@@
-157,6
+157,7
@@
main (int argc, char *argv[])
printf ("could not read linux command line\n");
}
+#ifndef WIN32
/* Make sure SIGPIPE doesn't kill us. */
struct sigaction sa;
memset (&sa, 0, sizeof sa);
@@
-164,6
+165,7
@@
main (int argc, char *argv[])
sa.sa_flags = 0;
if (sigaction (SIGPIPE, &sa, NULL) == -1)
perror ("sigaction SIGPIPE"); /* but try to continue anyway ... */
+#endif
/* Set up a basic environment. After we are called by /init the
* environment is essentially empty.