summaryrefslogtreecommitdiffstats
path: root/daemon
diff options
context:
space:
mode:
authorRichard Jones <rjones@redhat.com>2009-11-25 14:40:52 +0000
committerRichard Jones <rjones@redhat.com>2009-11-25 16:28:26 +0000
commitb884456237b71e1a39fae3fc60f5a168b020cd6b (patch)
tree4da47cc92592b33a0fb3220257b8836b68dc4e6f /daemon
parentb20a0916d8711fd3fb448dc5d4febee9d7a6331c (diff)
downloadlibguestfs-b884456237b71e1a39fae3fc60f5a168b020cd6b.tar.gz
libguestfs-b884456237b71e1a39fae3fc60f5a168b020cd6b.tar.xz
libguestfs-b884456237b71e1a39fae3fc60f5a168b020cd6b.zip
daemon/Win32: Don't bother blocking SIGPIPE on Win32.
Diffstat (limited to 'daemon')
-rw-r--r--daemon/guestfsd.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/daemon/guestfsd.c b/daemon/guestfsd.c
index e6384d21..67206d0e 100644
--- 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.