Wrap waitpid() as a GSource. This is a partial implementation of the "Unix

Sat Feb 14 01:21:34 2004  Matthias Clasen  <maclas@gmx.de>

	* glib/gmain.h:
	* glib/gmain.c (g_child_watch_source_new):
	* glib/gmain.c (g_child_watch_add):
	* glib/gmain.c (g_child_watch_add_full): Wrap waitpid() as a
	GSource. This is a partial implementation of the "Unix signal
	source".  (#50296, Jonathan R. Blandford)

	* configure.in: Add the necessary configury to typedef GPid
	appropriately.

	* tests/Makefile.am:
	* tests/child-test.c: Test child_watch sources.
This commit is contained in:
Matthias Clasen
2004-02-14 00:23:36 +00:00
committed by Matthias Clasen
parent fff62fd3df
commit 540d02ba8b
13 changed files with 590 additions and 103 deletions

View File

@@ -131,6 +131,7 @@ case "$host" in
GOBJECT_DEF=gobject.def
GTHREAD_DEF=gthread.def
TESTGMODULE_EXP=testgmodule.exp
glib_pid_type=HANDLE
;;
*)
glib_native_win32=no
@@ -143,6 +144,7 @@ case "$host" in
GOBJECT_DEF=
GTHREAD_DEF=
TESTGMODULE_EXP=
glib_pid_type=int
;;
esac
AC_MSG_RESULT([$glib_native_win32])
@@ -2265,6 +2267,8 @@ _______EOF
#define G_MODULE_SUFFIX "$g_module_suffix"
typedef $g_pid_type GPid;
G_END_DECLS
#endif /* GLIBCONFIG_H */
@@ -2536,6 +2540,7 @@ g_mutex_contents="$glib_cv_byte_contents_gmutex"
g_module_suffix="$glib_gmodule_suffix"
g_pid_type="$glib_pid_type"
case $host in
*-*-beos*)
glib_os="#define G_OS_BEOS"