Richard W.M. Jones
2009-Nov-25 15:01 UTC
[Libguestfs] [PATCH] daemon/Win32: Don't bother blocking SIGPIPE on Win32.
-- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones New in Fedora 11: Fedora Windows cross-compiler. Compile Windows programs, test, and build Windows installers. Over 70 libraries supprt'd http://fedoraproject.org/wiki/MinGW http://www.annexia.org/fedora_mingw -------------- next part -------------->From 6b1f24fb3bf4427ec2115278ee163e05b645cfee Mon Sep 17 00:00:00 2001From: Richard Jones <rjones at redhat.com> Date: Wed, 25 Nov 2009 14:40:52 +0000 Subject: [PATCH 2/7] daemon/Win32: Don't bother blocking SIGPIPE on Win32. --- daemon/guestfsd.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) 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.6.5.2
Reasonably Related Threads
- [PATCH] daemon/Win32: Windows replacement for umask.
- [PATCH] daemon/RHEL: Choose correct udev settle script.
- [PATCH] daemon/Win32: provide htonl, htons, ntohl, ntohs functions.
- [PATCH 0/2] Two small fixes to command*() functions in the daemon
- Remote use of libguestfs