[uClinux-dev] Daemonize a process

Erik Andersen andersen at codepoet.org
Thu Mar 13 12:41:03 EST 2003


On Thu Mar 13, 2003 at 11:18:32AM +0200, Roope Anttinen wrote:
> Try something like this. Fairly standard stuff but I haven't tried this
> is uClinux so it might need some modifications.
> 
> int daemonize()
> {
>     int fd;
>     pid_t pid;
> 
>     pid = fork();

You cannot use fork() under uClinux.

 -Erik

--
Erik B. Andersen             http://codepoet-consulting.com/
--This message was written using 73% post-consumer electrons--



More information about the uClinux-dev mailing list