![]() |
![]() |
![]() |
Run a process in the background
#include <stdlib.h> int daemon( int nochdir, int noclose );
libc
The daemon() function allows programs to detach themselves from the controlling terminal and run in the background as system daemons.
This function calls procmgr_daemon().
Zero for success, or -1 if an error occurs (errno is set).
Safety: | |
---|---|
Cancellation point | No |
Interrupt handler | No |
Signal handler | Yes |
Thread | Yes |
![]() |
![]() |
![]() |