mirror of
https://gitlab.freedesktop.org/dbus/dbus.git
synced 2026-01-03 10:20:17 +01:00
_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. Bug: https://bugs.freedesktop.org/show_bug.cgi?id=68852 Reviewed-by: Ralf Habacker <ralf.habacker@freenet.de>
This commit is contained in:
parent
732021af1b
commit
cae26e9fac
1 changed files with 3 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue