git.annexia.org
/
libguestfs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ea99d9e
)
daemon/Win32: Windows can't daemonize.
author
Richard Jones
<rjones@redhat.com>
Wed, 25 Nov 2009 14:59:30 +0000
(14:59 +0000)
committer
Richard Jones
<rjones@redhat.com>
Wed, 25 Nov 2009 16:28:26 +0000
(16:28 +0000)
daemon/guestfsd.c
patch
|
blob
|
history
diff --git
a/daemon/guestfsd.c
b/daemon/guestfsd.c
index
40b3c2f
..
d3b754d
100644
(file)
--- 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 /* WIN32 */
+ fprintf (stderr, "On Windows the daemon does not support forking into the background.\nYou *must* run the daemon with the -f option.\n");
+ exit (EXIT_FAILURE);
+#endif /* WIN32 */
}
/* Enter the main loop, reading and performing actions. */