summaryrefslogtreecommitdiff
path: root/glib/gspawn.h
diff options
context:
space:
mode:
authorOwen Taylor <otaylor@redhat.com>2004-03-01 20:47:49 +0000
committerOwen Taylor <otaylor@src.gnome.org>2004-03-01 20:47:49 +0000
commit38cbfaeb7a2ca063ec600de2220ba1c6796647a4 (patch)
tree5c41436a9698760a6fd7984a4639bbe08aa05103 /glib/gspawn.h
parent6c6e41510ae7586ed34c9a6654a4a32d75ccb948 (diff)
downloadglib-38cbfaeb7a2ca063ec600de2220ba1c6796647a4.tar.gz
Patch from J. Ali Harlow
Mon Mar 1 15:39:57 2004 Owen Taylor <otaylor@redhat.com> Patch from J. Ali Harlow * configure.in: Use void * not HANDLE for GPid on win32. * glib/gspawn.[ch] glib/gspawn-win32.[ch] glib/glib.def: Add g_spawn_close_pid(). * glib/gspawn.[ch]: Make g_spawn functions take GPid * instead if int * (GPid == int on unix, will produce compile warnings until fixed on Win32.) * tests/child-test.c: Make the test a little more inappropriately verbose. * glib/gmain.c: Add some documentation warnings about not closing @pid while the source is active.
Diffstat (limited to 'glib/gspawn.h')
-rw-r--r--glib/gspawn.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/glib/gspawn.h b/glib/gspawn.h
index 795bb3ce6..9ca187946 100644
--- a/glib/gspawn.h
+++ b/glib/gspawn.h
@@ -77,7 +77,7 @@ gboolean g_spawn_async (const gchar *working_directory,
GSpawnFlags flags,
GSpawnChildSetupFunc child_setup,
gpointer user_data,
- gint *child_pid,
+ GPid *child_pid,
GError **error);
@@ -90,7 +90,7 @@ gboolean g_spawn_async_with_pipes (const gchar *working_directory,
GSpawnFlags flags,
GSpawnChildSetupFunc child_setup,
gpointer user_data,
- gint *child_pid,
+ GPid *child_pid,
gint *standard_input,
gint *standard_output,
gint *standard_error,
@@ -120,6 +120,8 @@ gboolean g_spawn_command_line_sync (const gchar *command_line,
gboolean g_spawn_command_line_async (const gchar *command_line,
GError **error);
+void g_spawn_close_pid (GPid pid);
+
G_END_DECLS