From b884456237b71e1a39fae3fc60f5a168b020cd6b Mon Sep 17 00:00:00 2001 From: Richard Jones Date: Wed, 25 Nov 2009 14:40:52 +0000 Subject: [PATCH] daemon/Win32: Don't bother blocking SIGPIPE on Win32. --- daemon/guestfsd.c | 2 ++ 1 file changed, 2 insertions(+) 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. -- 1.8.3.1