Sortix nightly manual
This manual documents Sortix nightly, a development build that has not been officially released. You can instead view this document in the latest official manual.
NAME
daemon — system background processDESCRIPTION
A daemon is a system background process that performs a task or continuously provides a service. init(8) starts daemons on system startup per the init(5) configuration and stops them on system shutdown.EXAMPLES
A daemon can signal readiness using this utility function:static void ready(void) { const char *readyfd_env = getenv("READYFD"); if ( !readyfd_env ) return; int readyfd = atoi(readyfd_env); char c = '\n'; write(readyfd, &c, 1); close(readyfd); unsetenv("READYFD"); }