summaryrefslogtreecommitdiff
path: root/man2/fork.2
diff options
context:
space:
mode:
Diffstat (limited to 'man2/fork.2')
-rw-r--r--man2/fork.210
1 files changed, 5 insertions, 5 deletions
diff --git a/man2/fork.2 b/man2/fork.2
index 31674499..301047da 100644
--- a/man2/fork.2
+++ b/man2/fork.2
@@ -41,13 +41,13 @@ fork \- create a child process
.sp
.B pid_t fork(void);
.SH DESCRIPTION
-.B fork
+.BR fork ()
creates a child process that differs from the parent process only in its
PID and PPID, and in the fact that resource utilizations are set to 0.
File locks and pending signals are not inherited.
.PP
Under Linux,
-.B fork
+.BR fork ()
is implemented using copy-on-write pages, so the only penalty incurred by
fork is the time and memory required to duplicate the parent's page tables,
and to create a unique task structure for the child.
@@ -61,7 +61,7 @@ will be set appropriately.
.SH ERRORS
.TP
.B EAGAIN
-.B fork
+.BR fork ()
cannot allocate sufficient memory to copy the parent's page tables and
allocate a task structure for the child.
.TP
@@ -76,11 +76,11 @@ or the
capability.
.TP
.B ENOMEM
-.B fork
+.BR fork ()
failed to allocate the necessary kernel structures because memory is tight.
.SH "CONFORMING TO"
The
-.B fork
+.BR fork ()
call conforms to SVr4, SVID, POSIX, X/OPEN, 4.3BSD.
.SH "SEE ALSO"
.BR clone (2),