summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorgpalmer <gpalmer@FreeBSD.org>1996-06-22 23:46:00 +0000
committergpalmer <gpalmer@FreeBSD.org>1996-06-22 23:46:00 +0000
commit5adad2cb6b995e035c065e09ab0044af51bb37dc (patch)
treecf68b0e4acac0c7417fe5611628e373bdb8b4433 /lib
parent694ef53b8b84be2f422dc50e8bdddbc738adc177 (diff)
downloadFreeBSD-src-5adad2cb6b995e035c065e09ab0044af51bb37dc.zip
FreeBSD-src-5adad2cb6b995e035c065e09ab0044af51bb37dc.tar.gz
Specify that daemon(3) returns int, and standardise the
phrasing in the ERRORS section a bit, as well as now specifying the return status.
Diffstat (limited to 'lib')
-rw-r--r--lib/libc/gen/daemon.38
1 files changed, 5 insertions, 3 deletions
diff --git a/lib/libc/gen/daemon.3 b/lib/libc/gen/daemon.3
index 97646d7..6bc26bc 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
OpenPOWER on IntegriCloud