[PATCH] Fix start-stop-daemon on no-MMU

Alex Landau landau_alex at yahoo.com
Thu Aug 2 00:48:10 PDT 2007


--- Mike Frysinger <vapier at gentoo.org> 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 


More information about the busybox mailing list