summaryrefslogtreecommitdiffstats
path: root/man3/daemon.3
diff options
context:
space:
mode:
Diffstat (limited to 'man3/daemon.3')
-rw-r--r--man3/daemon.326
1 files changed, 13 insertions, 13 deletions
diff --git a/man3/daemon.3 b/man3/daemon.3
index edc4e54b6..1f98dd791 100644
--- a/man3/daemon.3
+++ b/man3/daemon.3
@@ -21,7 +21,7 @@ Standard C library
.P
.RS -4
Feature Test Macro Requirements for glibc (see
-.BR feature_test_macros (7)):
+.MR feature_test_macros 7 ):
.RE
.P
.BR daemon ():
@@ -58,10 +58,10 @@ to
otherwise, no changes are made to these file descriptors.
.SH RETURN VALUE
(This function forks, and if the
-.BR fork (2)
+.MR fork 2
succeeds, the parent calls
.\" not .IR in order not to underline _
-.BR _exit (2),
+.MR _exit 2 ,
so that further errors are seen by the child only.)
On success
.BR daemon ()
@@ -71,12 +71,12 @@ If an error occurs,
returns \-1 and sets
.I errno
to any of the errors specified for the
-.BR fork (2)
+.MR fork 2
and
-.BR setsid (2).
+.MR setsid 2 .
.SH ATTRIBUTES
For an explanation of the terms used in this section, see
-.BR attributes (7).
+.MR attributes 7 .
.TS
allbox;
lbx lb lb
@@ -105,9 +105,9 @@ None.
.SH BUGS
The GNU C library implementation of this function was taken from BSD,
and does not employ the double-fork technique (i.e.,
-.BR fork (2),
-.BR setsid (2),
-.BR fork (2))
+.MR fork 2 ,
+.MR setsid 2 ,
+.MR fork 2 )
that is necessary to ensure that the resulting daemon process is
not a session leader.
Instead, the resulting daemon
@@ -123,7 +123,7 @@ already a controlling terminal for another session,
then that terminal will inadvertently become
the controlling terminal for the daemon.
.SH SEE ALSO
-.BR fork (2),
-.BR setsid (2),
-.BR daemon (7),
-.BR logrotate (8)
+.MR fork 2 ,
+.MR setsid 2 ,
+.MR daemon 7 ,
+.MR logrotate 8