On 12/21/06, huy vu <[EMAIL PROTECTED]> wrote:
Could someone tell me why one must use vfork() if one is to call exec right 
after? I am seeing exec fails right after doing a fork() and would like to 
under stand why before trying vfork()

Thanks,
Huy
vfork() is not thread safe and you should not use it. fork() and
vfork() return twice, once for the parent and once for the child
process, the difference is that vfork does not clone the address space
of the parent process. Solaris unlike linux will fail if there is not
enough memory to host both the parent and the child address space.

nacho
_______________________________________________
opensolaris-discuss mailing list
[email protected]

Reply via email to