[uClibc] vfork() wrapper in libpthread: BAD!

Erik Andersen andersen at codepoet.org
Wed May 5 04:30:17 UTC 2004


On Tue May 04, 2004 at 05:33:13PM +0800, Rogelio Serrano wrote:
> I see. Is it feasible to fixup all the pointers in the child? 
> Its easy for the code section i think but i dont know if it 
> could be done for the data and bss sections and the stack.

Exactly.  I think it would be difficult to get this correct.
Perhaps using position independent executables (PIEs) would
help, but I've not really thought through it.

> I wonder how the old 16bit minix implemented fork.

Good question.  dunno.

 -Erik

--
Erik B. Andersen             http://codepoet-consulting.com/
--This message was written using 73% post-consumer electrons--



More information about the uClibc mailing list