[uClibc] vfork() wrapper in libpthread: BAD!
Erik Andersen
andersen at codepoet.org
Tue May 4 08:39:07 UTC 2004
On Mon May 03, 2004 at 08:22:21PM -0300, Alexandre Oliva wrote:
> Hi,
>
> The vfork() wrapper defined in libpthread, that's used to run
> pthread_atfork()-registered handlers, is not only a very bad idea,
> it's broken and useless. Here's the rationale:
[---------snip----------]
> Since the implementation as it stands is broken (linking a program
> that vfork()s and exec()s on the child and wait()s on the parent works
> unless you happen to link with libpthread), and I can't think of
> any workable solution, I suggest that we simply remove the vfork()
> overrider in the non-MMU case. Yes, we might lose some small amount
> of functionality here, but it's not like people running uClinux expect
> anything resembling actual fork() to work.
fully agreed. That stuff needs to die a quick death,
-Erik
--
Erik B. Andersen http://codepoet-consulting.com/
--This message was written using 73% post-consumer electrons--
More information about the uClibc
mailing list