After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 154828 - g_child_watch_add doesn't work for more than one handler per GPid
g_child_watch_add doesn't work for more than one handler per GPid
Status: RESOLVED FIXED
Product: glib
Classification: Platform
Component: docs
2.4.x
Other Linux
: Normal major
: ---
Assigned To: gtkdev
gtkdev
Depends on:
Blocks: 150251
 
 
Reported: 2004-10-07 21:25 UTC by Gustavo Carneiro
Modified: 2004-12-22 21:47 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Test case (726 bytes, text/plain)
2004-10-07 21:26 UTC, Gustavo Carneiro
Details

Description Gustavo Carneiro 2004-10-07 21:25:14 UTC
If I call g_child_watch_add() with the same GPid, only the first callback is
ever called, the others are completely ignored.
Comment 1 Gustavo Carneiro 2004-10-07 21:26:08 UTC
Created attachment 32369 [details]
Test case
Comment 2 Owen Taylor 2004-10-07 21:45:28 UTC
This is almost certainly NOTABUG.
Comment 3 Owen Taylor 2004-10-07 21:45:37 UTC
(maybe docs)
Comment 4 Gustavo Carneiro 2004-10-08 11:02:42 UTC
OK, that's fair, as long as properly documented.
Comment 5 Matthias Clasen 2004-10-08 14:21:14 UTC
2004-10-08  Matthias Clasen  <mclasen@redhat.com>

	* glib/gmain.c (g_child_watch_add_full): 
	* glib/gmain.c (g_child_watch_add): Document that GLib supports only
	a single callback per pid. (#154828, Gustavo Carneiro)