Re: question about _exit() function

2003-11-28 Thread Terry Lambert
rmkml wrote: > Thanks a lot for the answer. I will change vfork() with fork(). > > An another question: in the man page of vfork() it is mentionned that > the fork() function has to use _exit(0) too when something wrong with the > execve() happens! I can see how you might read it this way, but th

Re: question about _exit() function

2003-11-28 Thread rmkml
AIL PROTECTED] > Subject: Re: question about _exit() function > > rmkml wrote: > > is the _exit() function safe for a thread ? > > my program use vfork() and then execve in a thread context. > > The documentation mentions that the process has to call _exit() in case > >

Re: question about _exit() function

2003-11-28 Thread Terry Lambert
rmkml wrote: > is the _exit() function safe for a thread ? > my program use vfork() and then execve in a thread context. > The documentation mentions that the process has to call _exit() in case > of failure. > But this _exit() is really safe for the parent thread ? The behaviour is undefined in t

Re: question about _exit() function

2003-11-27 Thread rmkml
and I use freebsd v4.8. On Thu, 27 Nov 2003, rmkml wrote: > Date: Thu, 27 Nov 2003 20:20:04 +0100 (CET) > From: rmkml <[EMAIL PROTECTED]> > To: [EMAIL PROTECTED] > Subject: question about _exit() function > > Hi, > > is the _exit() function safe for a thread ? >

question about _exit() function

2003-11-27 Thread rmkml
Hi, is the _exit() function safe for a thread ? my program use vfork() and then execve in a thread context. The documentation mentions that the process has to call _exit() in case of failure. But this _exit() is really safe for the parent thread ? Thanks in advance for the reply.