From be51ff7e5ef2e9370fd2417614781f688576d37a Mon Sep 17 00:00:00 2001 From: Ralf Habacker Date: Fri, 18 Dec 2009 16:45:50 +0100 Subject: [PATCH] windows does not support fork, skip it --- test/test-service.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/test/test-service.c b/test/test-service.c index a57bf9c..2bd2dbc 100644 --- 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) -- 2.7.4