[BusyBox] fork / vfork in init.c

Poul Erik Hansen peh at ellab.com
Fri Oct 22 12:39:22 UTC 2004


Can You help me find out why my linux box (arm7 no-mmu, clibc 09.19) don't boot if those lines are missing.



-----Original Message-----
From: Jean Wolter [mailto:jw5 at os.inf.tu-dresden.de]
Sent: 22. oktober 2004 14:09
To: busybox at busybox.net
Subject: Re: [BusyBox] fork / vfork in init.c


"Poul Erik Hansen" <peh at ellab.com> writes:

> Please add this patch
>
> @@ -52,6 +52,9 @@
>  # include <sys/syslog.h>
>  #endif
>
> +#if defined(__UCLIBC__) && !defined(__ARCH_HAS_MMU__)
> +#define fork  vfork
> +#endif
>
>  #define INIT_BUFFS_SIZE 256

>From <http://www.busybox.net/lists/busybox/2004-August/012259.html>:

<cite>
Subject: [BusyBox] [BUG] rc2, init and askfirst action

init hangs and is not able to reape orphaned processes if somone uses
an askfirst action in inittab.
</cite>

The reason was a combination of vfork usage and askfirst
implementation.

Regrads,
Jean



More information about the busybox mailing list