fork() on NOMMU
Denys Vlasenko
vda.linux at googlemail.com
Tue Sep 4 19:05:15 UTC 2007
On Sunday 02 September 2007 14:19, Alex Landau wrote:
>
> --- Denys Vlasenko <vda.linux at googlemail.com> wrote:
>
> > To ifdef out things that do not work on NOMMU (for example,
> > mount's NFS-related option to auto-background should be disabled).
> >
> > You already did it for httpd by adding #ifdefs which basically
> > enforced httpd -i. Send similar patches for tar/mount/whatever.
> >
>
> Attached patch does that for mount.
> It ignores the options "fg" and "bg" (always doing "fg"). Do you think a message (+exit?)
> should be printed if "bg" is passed? I never used bg myself, so don't know how useful it
> is...
Thanks, applied.
Sorry for the delay.
> For tar it's trickier... I'm thinking of changing the prototype of open_transformer to
> (int fd, func_ptr, decompressor_prog). the decompressor_prog is a string equal to "gzip
> -cdf", "bzip2 -cdf" or something similar (maybe just "gzip, "bzip2", and open_transformer
> itself would add "-cdf"). Then define a macro with the same name that on MMU will just
> withdraw the last argument, and on NOMMU withdraw the func_ptr (similar to
> daemonize_or_reexec). open_transformer itself will have an "#if BB_MMU" that will decide
> to fork and use func_ptr or to vfork and exec decompressor_prog.
> Sounds OK?
Yes.
--
vda
More information about the busybox
mailing list