[uClinux-dev] Daemonize a process
roope.anttinen at indagon.com
Thu Mar 13 11:12:44 EST 2003
I believe you can use the code snipped I posted with just replacing the
fork call there with vfork
On Thu, 2003-03-13 at 17:26, Stuart MacDonald wrote:
> From: "David McCullough" <davidm at snapgear.com>
> > There are a couple of ways to achieve this:
> > * have init start your daemon
> Not general enough. I need to be able to do this from the command
> > * have your daemon exec itself with a special option to become a daemon.
> The "special option" involves exactly the code I talk about in my
> original post; the code that uses fork that doesn't work on uClinux.
> > fork on uClinux is not possible. It gives a short term impression of
> > working, before your system dies horribly. It cannot be fixed in any
> > practical way and you can find all the reasons why in the uClinux-dev
> > archives :-)
> I'll have a look at the archives. I'd searched them for info on
> daemonising, but not on fixing fork.
> 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