dbus/dbus dbus-spawn.c,1.24,1.25 dbus-spawn.h,1.7,1.8
Ralf Habacker
rhabacker at kemper.freedesktop.org
Sun Mar 4 11:14:06 PST 2007
Update of /cvs/dbus/dbus/dbus
In directory kemper:/tmp/cvs-serv17308/dbus
Modified Files:
dbus-spawn.c dbus-spawn.h
Log Message:
* dbus/dbus-spawn.c,dbus/dbus-spawn.h (_dbus_spawn_async_with_babysitter):
added environment pointer as function parameter,used on win32.
* test/spawn-test.c: fixed call to above mentioned function.
Index: dbus-spawn.c
===================================================================
RCS file: /cvs/dbus/dbus/dbus/dbus-spawn.c,v
retrieving revision 1.24
retrieving revision 1.25
diff -u -d -r1.24 -r1.25
--- dbus-spawn.c 16 Sep 2006 15:34:34 -0000 1.24
+++ dbus-spawn.c 4 Mar 2007 19:14:03 -0000 1.25
@@ -1021,6 +1021,7 @@
*
* @param sitter_p return location for babysitter or #NULL
* @param argv the executable and arguments
+ * @param env the environment (not used on unix yet)
* @param child_setup function to call in child pre-exec()
* @param user_data user data for setup function
* @param error error object to be filled in if function fails
@@ -1029,6 +1030,7 @@
dbus_bool_t
_dbus_spawn_async_with_babysitter (DBusBabysitter **sitter_p,
char **argv,
+ char **env,
DBusSpawnChildSetupFunc child_setup,
void *user_data,
DBusError *error)
@@ -1217,7 +1219,7 @@
argv[0] = "/this/does/not/exist/32542sdgafgafdg";
if (_dbus_spawn_async_with_babysitter (&sitter, argv,
- NULL, NULL,
+ NULL, NULL, NULL,
&error))
{
_dbus_babysitter_block_for_child_exit (sitter);
@@ -1262,7 +1264,7 @@
argv[0] = TEST_SEGFAULT_BINARY;
if (_dbus_spawn_async_with_babysitter (&sitter, argv,
- NULL, NULL,
+ NULL, NULL, NULL,
&error))
{
_dbus_babysitter_block_for_child_exit (sitter);
@@ -1307,7 +1309,7 @@
argv[0] = TEST_EXIT_BINARY;
if (_dbus_spawn_async_with_babysitter (&sitter, argv,
- NULL, NULL,
+ NULL, NULL, NULL,
&error))
{
_dbus_babysitter_block_for_child_exit (sitter);
@@ -1352,7 +1354,7 @@
argv[0] = TEST_SLEEP_FOREVER_BINARY;
if (_dbus_spawn_async_with_babysitter (&sitter, argv,
- NULL, NULL,
+ NULL, NULL, NULL,
&error))
{
_dbus_babysitter_kill_child (sitter);
Index: dbus-spawn.h
===================================================================
RCS file: /cvs/dbus/dbus/dbus/dbus-spawn.h,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -d -r1.7 -r1.8
--- dbus-spawn.h 9 Sep 2004 10:20:17 -0000 1.7
+++ dbus-spawn.h 4 Mar 2007 19:14:03 -0000 1.8
@@ -37,6 +37,7 @@
dbus_bool_t _dbus_spawn_async_with_babysitter (DBusBabysitter **sitter_p,
char **argv,
+ char **env,
DBusSpawnChildSetupFunc child_setup,
void *user_data,
DBusError *error);
More information about the dbus-commit
mailing list