mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-31 21:34:12 +02:00
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:
committed by
Matthias Clasen
parent
fff62fd3df
commit
540d02ba8b
@@ -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"
|
||||
|
Reference in New Issue
Block a user