This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
Re: [PATCH][RFA] Reap children on stack trace generation.
- From: Casey Marshall <csm at gnu dot org>
- To: tromey at redhat dot com
- Cc: David Daney <ddaney at avtrex dot com>, java-patches at gcc dot gnu dot org
- Date: Fri, 09 Jul 2004 20:40:32 -0700
- Subject: Re: [PATCH][RFA] Reap children on stack trace generation.
- References: <40EA537F.5080005@avtrex.com> <87y8ltcdzo.fsf@fleche.redhat.com>
>>>>> "Tom" == Tom Tromey <tromey@redhat.com> writes:
>>>>> "David" == David Daney <ddaney@avtrex.com> writes:
David> natPosixProcess.cc has a related problem. First it forks, but
David> if the exec fails, the child is not reaped.
Tom> If the exec fails, do we really need the kill()?
Tom> Otherwise this is looking good. But also see
Tom> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11801 The thing is,
Tom> even with this patch we need a fix for the case where the user
Tom> just expects the process to be GCd and reaped without an explicit
Tom> waitFor call.
I remember this thread:
<http://gcc.gnu.org/ml/java-patches/2004-q2/msg00140.html>
I thought it was generally agreed that the most reliable
implementation for this sort of thing would be a seperate thread that
reaped child processes. That is, a single thread forks, execs, then
waits for processes.
In which case, wouldn't Classpath's VM reference implementation of
this be a better choice than fixing this version?
--
Casey Marshall || csm@gnu.org