On Tuesday 08 January 2008 06:33, Alex Landau wrote:
> > #if BB_MMU
> >                 child->pid = fork();
> > +               debug_printf_exec(": vfork returned %d\n", child->pid);
> > #else
> >                 child->pid = vfork();
> > +               debug_printf_exec(": fork returned %d\n", child->pid);
> > #endif

> Denys,
> It prints vfork(), but actually executes fork() (a typo in your patch below), 
> so I'd say
> busybox does not recognize that this is a NOMMU system.
> Alex

Thanks Alex!

Yes, I mistakenly interchanged fork/vfork _in debug messages ONLY_.
fork/vfork itself is correct (straignt for 0.9.0 tarball):

#if BB_MMU
                child->pid = fork();
#else
                child->pid = vfork();
#endif

Martin, you definitely do not build NOMMU busybox correctly.
In your build, BB_MMU is set to 1.
--
vda
_______________________________________________
busybox mailing list
[email protected]
http://busybox.net/cgi-bin/mailman/listinfo/busybox

Reply via email to