diff options
author | Havoc Pennington <hp@redhat.com> | 2003-04-05 00:37:17 +0000 |
---|---|---|
committer | Havoc Pennington <hp@redhat.com> | 2003-04-05 00:37:17 +0000 |
commit | 03b9ca6d4ecf2577958530b8390d675c73a58825 (patch) | |
tree | be0569a447ef9acaf5a0004fb9bfe1a2022c9eb1 /test/spawn-test.c | |
parent | 45d1479fad0fb55f1775c394e696643dad3e8e4d (diff) | |
download | dbus-03b9ca6d4ecf2577958530b8390d675c73a58825.tar.gz dbus-03b9ca6d4ecf2577958530b8390d675c73a58825.tar.bz2 dbus-03b9ca6d4ecf2577958530b8390d675c73a58825.zip |
2003-04-04 Havoc Pennington <hp@redhat.com>
* 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()
Diffstat (limited to 'test/spawn-test.c')
-rw-r--r-- | test/spawn-test.c | 3 |
1 files changed, 2 insertions, 1 deletions
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 <dbus/dbus-sysdeps.h> +#include <dbus/dbus-spawn.h> #undef DBUS_COMPILATION #include <stdio.h> @@ -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); |