• Simon McVittie's avatar
    Do not attempt to call child_setup on Windows · 420f3474
    Simon McVittie authored
    child_setup() is defined to be called after fork() and before exec(),
    but Windows' process model does not have fork(): the equivalent of
    those two operations is a single CreateProcess() call. This means
    that there is no point at which we could call child_setup() and
    have it affect only the child's process-global state. At the point
    where it is currently executed, it affects the parent's process-global
    state instead, which would be actively harmful if we used any
    child_setup() function that was not a no-op on Windows.
    
    The equivalent function in GLib, g_spawn_async_with_pipes(), documents
    child_setup() as unused on Windows. Do the same here.
    
    In practice, our only use of child_setup() outside tests
    is #ifdef DBUS_UNIX anyway, so this change has no practical effect
    right now.
    
    Bug: https://bugs.freedesktop.org/show_bug.cgi?id=85857Reviewed-by: Ralf Habacker's avatarRalf Habacker <ralf.habacker@freenet.de>
    420f3474
Name
Last commit
Last update
bus Loading commit data...
cmake Loading commit data...
dbus Loading commit data...
doc Loading commit data...
m4 Loading commit data...
test Loading commit data...
tools Loading commit data...
.gitignore Loading commit data...
.mailmap Loading commit data...
AUTHORS Loading commit data...
COPYING Loading commit data...
ChangeLog Loading commit data...
ChangeLog.pre-1-0 Loading commit data...
ChangeLog.pre-1-2 Loading commit data...
Doxyfile.in Loading commit data...
HACKING Loading commit data...
INSTALL Loading commit data...
Makefile.am Loading commit data...
Makefile.cvs Loading commit data...
NEWS Loading commit data...
NEWS.pre-1-0 Loading commit data...
NEWS.pre-1-2 Loading commit data...
README Loading commit data...
README.cmake Loading commit data...
README.cygwin Loading commit data...
README.launchd Loading commit data...
README.valgrind Loading commit data...
README.win Loading commit data...
README.wince Loading commit data...
autogen.sh Loading commit data...
cleanup-man-pages.sh Loading commit data...
configure.ac Loading commit data...
dbus-1-uninstalled.pc.in Loading commit data...
dbus-1.pc.in Loading commit data...