fork() on NOMMU

Alex Landau landau_alex at yahoo.com
Thu Aug 30 01:28:10 PDT 2007


Hi,

It's a pity I haven't spotted this earlier...
1.7.0 contains in libbb.h:
#define fork() BUG_fork_is_unavailable_on_nommu()
Last time I checked (1.4.1) this define wasn't there.

The problem I see is the following: fork() is used in several places, notably
util-linux/mount.c:731
archival/libunarchive/open_transformer.c:18

With the above #define, the build fails on my NOMMU board, despite not reaching the code
path using fork(). (e.g. in 1.4.1 I couldn't use "tar -czf" - it bailed out at runtime
with "fork() - not supported" or something similar, but could use "tar -xzf", and "mount"
worked too).

Any thoughts of the "right" way to solve this?
Removing the #define may be the easiest solution until all code using fork() is audited.

Thanks,
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