From 03b9ca6d4ecf2577958530b8390d675c73a58825 Mon Sep 17 00:00:00 2001 From: Havoc Pennington Date: Sat, 5 Apr 2003 00:37:17 +0000 Subject: 2003-04-04 Havoc Pennington * dbus/dbus-spawn.c, dbus/dbus-spawn.h: Change dbus_spawn to return a "babysitter" object that is used to monitor the status of the spawned process and reap it when required. * test/test-segfault.c, test/test-exit.c, test/test-sleep-forever.c: binaries that do various lame things, used in the test suite. * dbus/dbus-sysdeps.c: kill _dbus_errno_to_string() --- test/spawn-test.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'test/spawn-test.c') diff --git a/test/spawn-test.c b/test/spawn-test.c index 18462eba..f323368f 100644 --- a/test/spawn-test.c +++ b/test/spawn-test.c @@ -2,6 +2,7 @@ #define DBUS_COMPILATION /* cheat and use dbus-sysdeps */ #include +#include #undef DBUS_COMPILATION #include @@ -30,7 +31,7 @@ main (int argc, char **argv) argv_copy [i] = argv[i + 1]; argv_copy[argc - 1] = NULL; - if (!_dbus_spawn_async (argv_copy, setup_func, NULL, &error)) + if (!_dbus_spawn_async_with_babysitter (NULL, argv_copy, setup_func, NULL, &error)) { fprintf (stderr, "Could not launch application: \"%s\"\n", error.message); -- cgit