From: Richard Jones Date: Wed, 25 Nov 2009 14:40:52 +0000 (+0000) Subject: daemon/Win32: Don't bother blocking SIGPIPE on Win32. X-Git-Tag: 1.0.80~44 X-Git-Url: http://git.annexia.org/?a=commitdiff_plain;h=b884456237b71e1a39fae3fc60f5a168b020cd6b;p=libguestfs.git daemon/Win32: Don't bother blocking SIGPIPE on Win32. --- diff --git a/daemon/guestfsd.c b/daemon/guestfsd.c index e6384d2..67206d0 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.