busybox compile error form ARM core???

Bernhard Fischer rep.nop at aon.at
Tue May 30 17:45:00 UTC 2006


On Tue, May 30, 2006 at 10:01:50AM +0200, Peter S. Mazinger wrote:
>On Tue, 30 May 2006, Rob Landley wrote:
>
>> On Tuesday 30 May 2006 2:20 am, yangm wrote:

>> 
>>   if (!(opt & 2)) {
>> #if defined(__uClinux__)
>
>for uClibc-svn non-MMU the condition to use the internal version would be
>
>#if defined __UCLIBC__ && !defined __ARCH_USE_MMU__
>
>Peter
>
>>     /* reexec for vfork() do continue parent */
>>     vfork_daemon_rexec (0, 0, argc, argv, "-f");
>> #else
>>     daemon (0, 0); /* bb_xdaemon? */
>> #endif /* uClinux */
>>   } else {

Landley, what do you think?

in platform.h, 
/* uclibc does not implement daemon for no-mmu systems. */
#if defined __UCLIBC__ && !defined __ARCH_USE_MMU__
#define BB_DAEMON(no_chdir, no_close, argc, argv, str) \
	vfork_daemon_rexec(no_chdir, no_close, argc, argv, str)
#else
#define BB_DAEMON(no_chdir, no_close, argc, argv, str) \
	daemon(no_chdir, no_close)
#endif

Alternatively, we can of course introduce an int bb_daemon(d,c,ac,av,s){} to libbb
which does the same (may be bigger than the proposal above, didn't try).



More information about the busybox mailing list