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

@@ -1,3 +1,9 @@
Sat Feb 14 01:25:23 2004 Matthias Clasen <maclas@gmx.de>
* glib/glib-sections.txt: Add GPid, GChildWatchFunc,
g_child_watch_source_new, g_child_watch_add,
g_child_watch_add_full.
Fri Feb 13 23:16:25 2004 Matthias Clasen <maclas@gmx.de>
* glib/tmpl/macros_misc.sgml: Fix a typo.

View File

@@ -426,6 +426,12 @@ g_idle_add
g_idle_add_full
g_idle_remove_by_data
<SUBSECTION>
GPid
GChildWatchFunc
g_child_watch_source_new
g_child_watch_add
g_child_watch_add_full
<SUBSECTION>
GPollFD
@@ -468,6 +474,7 @@ GLIB_SYSDEF_POLLPRI
G_WIN32_MSG_HANDLE
g_idle_funcs
g_timeout_funcs
g_child_watch_funcs
</SECTION>
<SECTION>