daemon function
Put the program in the background, and dissociate from the controlling terminal. If NOCHDIR is zero, do `chdir ("/")'. If NOCLOSE is zero, redirects stdin, stdout, and stderr to /dev/null.
Implementation
int daemon(
int nochdir,
int noclose,
) {
_daemon ??= Libc()
.dylib
.lookupFunction<ffi.Int32 Function(ffi.Int32, ffi.Int32), _dart_daemon>(
'daemon');
return _daemon!(
nochdir,
noclose,
);
}