busybox 1.1.3 - fork on nommu

Rick Garcia rick at liveoaklogic.com
Wed Oct 25 23:35:38 UTC 2006


	I'm working with BB1.1.3, so if at any point, I need to just upgrade to 
1.2.x, let me know :).

	I'm looking at the "run" function in init.c - it's getting the struct 
init_action ok, but immediately, it calls fork :

line 401:
...
	sigprocmask(SIG_BLOCK, &nmask, &omask);

	if ((pid = fork()) == 0) {
		struct stat sb;

		/* Clean up */
		close(0);

...

	and there's no check for the possibility that fork returns -1, as it 
does on my m68k-nommu clone here.  Since fork can't really be 
well-implemented without an mmu, I can't see how this isn't broken for 
every nommu system out there - so my immediate conclusion is that I'm 
already way off base about something else in my setup.  Any suggestions?

	-Rick




More information about the busybox mailing list