diff options
| author | Gary Palmer <gpalmer@FreeBSD.org> | 1996-06-22 23:46:00 +0000 |
|---|---|---|
| committer | Gary Palmer <gpalmer@FreeBSD.org> | 1996-06-22 23:46:00 +0000 |
| commit | 7dd9508fc2ea14783f73d2b2474001c02a120143 (patch) | |
| tree | cf68b0e4acac0c7417fe5611628e373bdb8b4433 /lib | |
| parent | 35740f4fe34b263f746d738f54a86e8c39f692cd (diff) | |
Notes
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/libc/gen/daemon.3 | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/lib/libc/gen/daemon.3 b/lib/libc/gen/daemon.3 index 97646d7855f2..6bc26bcd87cb 100644 --- a/lib/libc/gen/daemon.3 +++ b/lib/libc/gen/daemon.3 @@ -38,6 +38,7 @@ .Nd run in the background .Sh SYNOPSIS .Fd #include <stdlib.h> +.Ft int .Fn daemon "int nochdir" "int noclose" .Sh DESCRIPTION .Pp @@ -59,15 +60,16 @@ is non-zero, will redirect standard input, standard output and standard error to ``/dev/null''. .Sh ERRORS -The function +If an error occurs, .Fn daemon -may fail and set +returns -1 and sets the global variable .Va errno -for any of the errors specified for the library functions +to any of the errors specified for the library functions .Xr fork 2 and .Xr setsid 2 . .Sh SEE ALSO +.Xr fork 2 , .Xr setsid 2 .Sh HISTORY The |
