summaryrefslogtreecommitdiff
path: root/lib/libc
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@cvs.openbsd.org>2016-05-18 11:41:17 +0000
committerIngo Schwarze <schwarze@cvs.openbsd.org>2016-05-18 11:41:17 +0000
commit27eda8d230c9011c6dc8bc35dac1a496b7f26a64 (patch)
tree4f9fc3cecec2966a071233219bb45730c5a57c43 /lib/libc
parentc0b5228c8eb20487238132aeab7f738d89d7914f (diff)
Reduce quadruple negation to double negation;
from Edgar Pettijohn <edgar at pettijohn minus web dot com>. OK jmc@ deraadt@ While here, remove two instances of inconsistent future tense.
Diffstat (limited to 'lib/libc')
-rw-r--r--lib/libc/gen/daemon.320
1 files changed, 10 insertions, 10 deletions
diff --git a/lib/libc/gen/daemon.3 b/lib/libc/gen/daemon.3
index f221c0ede22..4bcb462704e 100644
--- a/lib/libc/gen/daemon.3
+++ b/lib/libc/gen/daemon.3
@@ -1,4 +1,4 @@
-.\" $OpenBSD: daemon.3,v 1.12 2013/06/05 03:39:22 tedu Exp $
+.\" $OpenBSD: daemon.3,v 1.13 2016/05/18 11:41:16 schwarze Exp $
.\"
.\" Copyright (c) 1993
.\" The Regents of the University of California. All rights reserved.
@@ -27,7 +27,7 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.Dd $Mdocdate: June 5 2013 $
+.Dd $Mdocdate: May 18 2016 $
.Dt DAEMON 3
.Os
.Sh NAME
@@ -43,18 +43,18 @@ The
function is for programs wishing to detach themselves from the
controlling terminal and run in the background as system daemons.
.Pp
-Unless the argument
+If the argument
.Fa nochdir
-is non-zero,
+is zero,
.Fn daemon
changes the current working directory to the root
.Pq Pa / .
.Pp
-Unless the argument
+If the argument
.Fa noclose
-is non-zero,
+is zero,
.Fn daemon
-will redirect standard input, standard output and standard error to
+redirects standard input, standard output and standard error to
.Pa /dev/null .
.Sh RETURN VALUES
Upon success,
@@ -78,11 +78,11 @@ The
function first appeared in
.Bx 4.4 .
.Sh CAVEATS
-Unless the
+If the
.Ar noclose
-argument is non-zero,
+argument is zero,
.Fn daemon
-will close the first three file descriptors and redirect them to
+closes the first three file descriptors and redirects them to
.Pa /dev/null .
Normally, these correspond to standard input, standard output and
standard error.