This is the mail archive of the
mailing list for the GCC project.
Re: PATCH RFC: Remove fork from collect2
On Wed, Mar 17, 2004 at 08:05:35AM -0500, Ian Lance Taylor wrote:
> Gunther Nikl <email@example.com> writes:
> > On Tue, Mar 16, 2004 at 09:38:14PM -0500, Ian Lance Taylor wrote:
> > > Here is the promised patch to remove the fork call from collect2.
> > If I read the original code correctly, it could also use vfork(). That
> > is gone woth your patch.
> Correct. The new code can use vfork if people think that is important.
I wanted to make sure that the previous usage of vork isn't forgotten
and wasn't removed by accident.
> Recall that this code is rarely used at present. We would get a
> bigger benefit by converting pex-unix.c to use vfork, since that is
> always used.
This code used to use vfork but that support was dropped because of
race condtions or something like that. My system (m68k-amigaos) doesn't
support fork but has vfork.