This is the mail archive of the
java-prs@gcc.gnu.org
mailing list for the Java project.
[Bug libgcj/29324] add wait handling hook
- From: "daney at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: java-prs at gcc dot gnu dot org
- Date: 5 Oct 2006 05:42:47 -0000
- Subject: [Bug libgcj/29324] add wait handling hook
- References: <bug-29324-360@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #3 from daney at gcc dot gnu dot org 2006-10-05 05:42 -------
One way to fix it would be to have a reaper thread for *each* Process. Then
the reaper could do a waitpid(pid...) instead of waitpid(-1...). If one only
spawns a few processes, this would be fine. This would allow us to get rid of
the SIGCHLD handler as well.
Another option would to have the process reaper be a seperate process, but that
scares me.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29324