This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: [Bug libgcj/29324] add wait handling hook
- From: Andrew Pinski <pinskia at physics dot uc dot edu>
- To: gcc-bugzilla at gcc dot gnu dot org
- Cc: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 04 Oct 2006 22:48:48 -0700
- Subject: Re: [Bug libgcj/29324] add wait handling hook
- References: <bug-29324-360@http.gcc.gnu.org/bugzilla/> <20061005054247.6601.qmail@sourceware.org>
On Thu, 2006-10-05 at 05:42 +0000, daney at gcc dot gnu dot org wrote:
>
> ------- 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.
Even multiple threads scares me for Linux since that would mean double
the amount of processes in the process table. Maybe Linux needs this
problem if it still exists. I know Linux threads had this problem but I
forget if NTPL does.
Thanks,
Andrew Pinski