"Ignacio Marambio Catán" <[EMAIL PROTECTED]> wrote:
> 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() itself is thread safe. The problems arise from using the dynamic linker
from the child that shares (borrowed) the address space and locks from the
parent.
vfork() should be no problem as long as you do not use new (not already linked)
identifiers before you call exec()
.
Jörg
--
EMail:[EMAIL PROTECTED] (home) Jörg Schilling D-13353 Berlin
[EMAIL PROTECTED] (uni)
[EMAIL PROTECTED] (work) Blog: http://schily.blogspot.com/
URL: http://cdrecord.berlios.de/old/private/ ftp://ftp.berlios.de/pub/schily
_______________________________________________
opensolaris-discuss mailing list
[email protected]