projects
/
platform
/
upstream
/
dbus.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
35eb740
)
windows does not support fork, skip it
author
Ralf Habacker
<ralf.habacker@freenet.de>
Fri, 18 Dec 2009 15:45:50 +0000
(16:45 +0100)
committer
Ralf Habacker
<ralf.habacker@freenet.de>
Fri, 18 Dec 2009 15:45:50 +0000
(16:45 +0100)
test/test-service.c
patch
|
blob
|
history
diff --git
a/test/test-service.c
b/test/test-service.c
index
a57bf9c
..
2bd2dbc
100644
(file)
--- a/
test/test-service.c
+++ b/
test/test-service.c
@@
-409,7
+409,9
@@
main (int argc,
else
{
name = argv[1];
+#ifndef DBUS_WIN
do_fork = strcmp (argv[2], "fork") == 0;
+#endif
}
/* The bare minimum for simulating a program "daemonizing"; the intent
@@
-417,14
+419,15
@@
main (int argc,
* activated services.
* https://bugzilla.redhat.com/show_bug.cgi?id=545267
*/
- if (do_fork)
+#ifndef DBUS_WIN
+ if (do_fork)
{
pid_t pid = fork ();
if (pid != 0)
exit (0);
sleep (1);
}
-
+#endif
dbus_error_init (&error);
connection = dbus_bus_get (DBUS_BUS_STARTER, &error);
if (connection == NULL)