[uClinux-dev] how to implement vfork()

Ahan Hsieh =?Big5?B?wcKqWrp+?= ahan.hsieh at sunplus.com
Wed Jun 6 07:16:37 EDT 2007


Hi folk,

I'm porting uClinux to our new no-mmu architecture.
There is a trouble occured.

After system call vfork() is called, the parent is suspended and 
cannot continue executing until the child exits or calls exec(), 
the system call used to start a new application. 
The child, directly after returning from vfork(), 
is running on the parent's stack and is using the parent's memory and 
data. 
This means the child can corrupt the data structures or the stack in the 
parent, resulting in failure. 

How can I avoid the problem? Is there any solution?

Thanks!

Best regards,
Ahan Hsieh
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.uclinux.org/pipermail/uclinux-dev/attachments/20070606/c34204ea/attachment.html


More information about the uClinux-dev mailing list