From fea4fa841793fb619db46fd02c7eadecfed72168 Mon Sep 17 00:00:00 2001 From: Simon McVittie Date: Thu, 29 Aug 2013 11:51:45 +0100 Subject: [PATCH 2/6] _dbus_become_daemon: don't pretend it worked This function is meaningless (and possibly unimplementable) on Windows. We shouldn't call it; if we do, it should raise an error. --- dbus/dbus-sysdeps-util-win.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/dbus/dbus-sysdeps-util-win.c b/dbus/dbus-sysdeps-util-win.c index fe4b1a2..4678b11 100644 --- a/dbus/dbus-sysdeps-util-win.c +++ b/dbus/dbus-sysdeps-util-win.c @@ -65,7 +65,9 @@ _dbus_become_daemon (const DBusString *pidfile, DBusError *error, dbus_bool_t keep_umask) { - return TRUE; + dbus_set_error (error, DBUS_ERROR_NOT_SUPPORTED, + "Cannot daemonize on Windows"); + return FALSE; } /** -- 1.8.4.rc3