Unix/Linux Go Back    

BSD 2.11 - man page for daemon (bsd section 3)

Linux & Unix Commands - Search Man Pages
Man Page or Keyword Search:   man
Select Man Page Set:       apropos Keyword Search (sections above)

DAEMON(3)										DAEMON(3)

       daemon - run in the background

       daemon(nochdir, noclose)
	   int nochdir, noclose;

       The daemon function is for programs wishing to detach themselves from the controlling ter-
       minal and run in the background as system daemons.

       Unless the argument nochdir is non-zero, daemon changes the current working  directory  to
       the root (``/'').

       Unless  the  argument  noclose  is non-zero, daemon will redirect standard input, standard
       output and standard error to ``/dev/null''.

       The function daemon may fail and set errno for any of the errors specified for the library
       functions fork(2).

       fork(2), ioctl(2).

       The daemon function first appeared in 4.4BSD.

4th Berkeley Distribution		 February 3, 1995				DAEMON(3)
Unix & Linux Commands & Man Pages : ©2000 - 2018 Unix and Linux Forums

All times are GMT -4. The time now is 08:01 AM.