mdoc(7) police: tidy up OpenBSD fixes.

This commit is contained in:
Ruslan Ermilov 2002-01-16 15:21:39 +00:00
parent 3e4f59ce06
commit 89ac4ecce1
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=89428

View File

@ -64,13 +64,11 @@ is non-zero,
will redirect standard input, standard output, and standard error to
.Pa /dev/null .
.Sh RETURN VALUES
Upon success,
.Fn daemon
returns 0; otherwise \-1 is returned.
.Rv -std daemon
.Sh ERRORS
The function
The
.Fn daemon
may fail and set
function may fail and set
.Va errno
for any of the errors specified for the library functions
.Xr fork 2
@ -86,14 +84,14 @@ function first appeared in
.Bx 4.4 .
.Sh CAVEATS
Unless the
.Ar noclose
.Fa noclose
argument is non-zero,
.Fn daemon
will close the first three file descriptors and redirect them to
.Pa /dev/null .
Normally, these correspond to standard input, standard output, and
standard error.
However, if any of those file descriptors refer to something else they
However, if any of those file descriptors refer to something else, they
will still be closed, resulting in incorrect behavior of the calling program.
This can happen if any of standard input, standard output, or standard
error have been closed before the program was run.