]> git.ipfire.org Git - thirdparty/dbus.git/commitdiff
dbus-spawn-win.c: Return valid error if child could not be spawned
authorRalf Habacker <ralf.habacker@freenet.de>
Fri, 21 Dec 2018 16:54:16 +0000 (17:54 +0100)
committerRalf <ralf@linux1.fritz.box>
Sat, 5 Jan 2019 10:41:58 +0000 (11:41 +0100)
Signed-off-by: Ralf Habacker <ralf.habacker@freenet.de>
dbus/dbus-spawn-win.c

index 1cbe84cb8ab65c9e4fab0a623a74fe6b14584417..87255964dc25fddb2b14b3ae96909e386b485066 100644 (file)
@@ -683,6 +683,9 @@ _dbus_spawn_async_with_babysitter (DBusBabysitter           **sitter_p,
       sitter->child_handle = NULL;
       sitter->have_spawn_errno = TRUE;
       sitter->spawn_errno = GetLastError();
+      dbus_set_error_const (error, DBUS_ERROR_SPAWN_EXEC_FAILED,
+                            "Failed to spawn child");
+      goto out0;
     }
 
   PING();