--- Mike Frysinger <[EMAIL PROTECTED]> wrote:

> On Thursday 02 August 2007, Alex Landau wrote:
> > +               if (pid != 0) /* parent */
> > +                       exit(0); /* the child may have changed the stack,
> > so no return possible, only function calls */ /* child */
> 
> i havent read the code, but gut feeling says that should be _exit(0) ... or 
> do 
> i need to read the code ? :)
> -mike
> 

You do need to read the code :-)
It's the parent who runs exit(), not the child, so it should be exit() and not 
_exit().
The child merely execv()s.

Alex


       
____________________________________________________________________________________
Got a little couch potato? 
Check out fun summer activities for kids.
http://search.yahoo.com/search?fr=oni_on_mail&p=summer+activities+for+kids&cs=bz
 
_______________________________________________
busybox mailing list
[email protected]
http://busybox.net/cgi-bin/mailman/listinfo/busybox

Reply via email to