Next: , Previous: , Up: linux   [Index]


7.9 Turning a process into a daemon

The following bindings are exported by the library (vicare linux).

Function: daemon nochdir noclose

Interface to the C language function daemon(), (*manpages*)daemon. Turn the current process into a daemon. If an error occurs raise an exception.

If nochdir is #f: change the current working directory to the root directory.

If noclose is #f: redirect stdin, stdout and stderr to /dev/null.