[uClinux-dev] Daemonize a process
hamilton at sedsystems.ca
Wed Mar 12 17:34:57 EST 2003
A simple way to daemonize a process:
This runs the process in the background.
Another way is to start the process is to use /etc/inittab.
On Wed, 12 Mar 2003, Stuart MacDonald wrote:
> The classic sequence of:
> doesn't work in uClinux because vfork blocks the parent until an _exit
> or execve().
> What I end up with is two D state processes (zombies) and the final
> child still parented by its real parent instead of init.
> I've checked a number of /user apps, but haven't found one that wants
> to do the same thing, so no example code to follow.
> Am I missing a simple solution, or is this just not possible until
> uClinux gets fork()? If so, what's required to get fork working? The
> comment in arch/m68knommu/kernel/process.c states that it almost
> works, but doesn't specify which bit is failing.
> uClinux-dev mailing list
> uClinux-dev at uclinux.org
> This message was resent by uclinux-dev at uclinux.org
More information about the uClinux-dev