From: Ralf Habacker Date: Fri, 18 Dec 2009 15:45:50 +0000 (+0100) Subject: windows does not support fork, skip it X-Git-Tag: dbus-1.3.1~128 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=be51ff7e5ef2e9370fd2417614781f688576d37a;p=platform%2Fupstream%2Fdbus.git windows does not support fork, skip it --- 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)