search for: 40b3c2f

Displaying 2 results from an estimated 2 matches for "40b3c2f".

Did you mean: 4093c20
2009 Nov 25
1
[PATCH] daemon/Win32: Windows replacement for umask.
...ard Jones <rjones at redhat.com> Date: Wed, 25 Nov 2009 14:56:42 +0000 Subject: [PATCH 5/7] daemon/Win32: Windows replacement for umask. --- daemon/guestfsd.c | 8 ++++++++ 1 files changed, 8 insertions(+), 0 deletions(-) diff --git a/daemon/guestfsd.c b/daemon/guestfsd.c index 64cf87f..40b3c2f 100644 --- a/daemon/guestfsd.c +++ b/daemon/guestfsd.c @@ -182,8 +182,16 @@ main (int argc, char *argv[]) setenv ("SHELL", "/bin/sh", 1); setenv ("LC_ALL", "C", 1); +#ifndef WIN32 /* We document that umask defaults to 022 (it should be this anyway)...
2009 Nov 25
1
[PATCH] daemon/Win32: Windows can't daemonize.
...001 From: Richard Jones <rjones at redhat.com> Date: Wed, 25 Nov 2009 14:59:30 +0000 Subject: [PATCH 6/7] daemon/Win32: Windows can't daemonize. --- daemon/guestfsd.c | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/daemon/guestfsd.c b/daemon/guestfsd.c index 40b3c2f..d3b754d 100644 --- a/daemon/guestfsd.c +++ b/daemon/guestfsd.c @@ -335,10 +335,15 @@ main (int argc, char *argv[]) /* Fork into the background. */ if (!dont_fork) { +#ifndef WIN32 if (daemon (0, 1) == -1) { perror ("daemon"); exit (EXIT_FAILURE); } +#else...