From 0ec0f10d66cec8a2e86932193a3bbda9a77a75f2 Mon Sep 17 00:00:00 2001 From: Ian Lepore Date: Wed, 2 Oct 2019 23:06:17 +0000 Subject: [PATCH] Clarify how the -f option for daemon(8) interacts with other options related to redirecting stdout and stderr. --- usr.sbin/daemon/daemon.8 | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/usr.sbin/daemon/daemon.8 b/usr.sbin/daemon/daemon.8 index e0f3a0dc11a0..10167a339c0f 100644 --- a/usr.sbin/daemon/daemon.8 +++ b/usr.sbin/daemon/daemon.8 @@ -63,6 +63,11 @@ Change the current working directory to the root .It Fl f Redirect standard input, standard output and standard error to .Pa /dev/null . +When this option is used together with any of the options related to file +or syslog output, the standard file descriptors are first redirected to +.Pa /dev/null , +then stdout and/or stderr is redirected to a file or to syslog as +specified by the other options. .It Fl S Enable syslog output. This is implicitly applied if other syslog parameters are provided.