{
int ret = 0;
DBusBabysitter *sitter = (DBusBabysitter *) parameter;
- HANDLE handle;
-
- PING();
- _dbus_verbose ("babysitter: spawning %s\n", sitter->log_name);
- PING();
- handle = _dbus_spawn_program (sitter->log_name, sitter->argv, sitter->envp);
-
- PING();
- if (handle != INVALID_HANDLE_VALUE)
- {
- sitter->child_handle = handle;
- }
- else
- {
- sitter->child_handle = NULL;
- sitter->have_spawn_errno = TRUE;
- sitter->spawn_errno = GetLastError();
- }
-
PING();
SetEvent (sitter->start_sync_event);
{
DBusBabysitter *sitter;
DWORD sitter_thread_id;
-
+ HANDLE handle;
+
_DBUS_ASSERT_ERROR_IS_CLEAR (error);
_dbus_assert (argv[0] != NULL);
}
sitter->envp = envp;
+ PING();
+ _dbus_verbose ("babysitter: spawn child '%s'\n", sitter->argv[0]);
+
+ PING();
+ handle = _dbus_spawn_program (sitter->log_name, sitter->argv, sitter->envp);
+
+ PING();
+ if (handle != INVALID_HANDLE_VALUE)
+ {
+ sitter->child_handle = handle;
+ }
+ else
+ {
+ sitter->child_handle = NULL;
+ sitter->have_spawn_errno = TRUE;
+ sitter->spawn_errno = GetLastError();
+ }
+
PING();
sitter->thread_handle = (HANDLE) CreateThread (NULL, 0, babysitter,
_dbus_babysitter_ref (sitter), 0, &sitter_thread_id);