summaryrefslogtreecommitdiff
path: root/static/v10/man2/fork.2
diff options
context:
space:
mode:
authorJacob McDonnell <jacob@jacobmcdonnell.com>2026-04-25 21:07:28 -0400
committerJacob McDonnell <jacob@jacobmcdonnell.com>2026-04-25 21:07:28 -0400
commit711594636704defae873be1a355a292505585afd (patch)
tree59ee13f863830d8beba6cfd02bbe813dd486c26f /static/v10/man2/fork.2
parent3258a063c1f189d7b019e40e525b46bef9b9a7b1 (diff)
docs: Added UNIX V10 Manuals
Diffstat (limited to 'static/v10/man2/fork.2')
-rw-r--r--static/v10/man2/fork.232
1 files changed, 32 insertions, 0 deletions
diff --git a/static/v10/man2/fork.2 b/static/v10/man2/fork.2
new file mode 100644
index 00000000..300c1dec
--- /dev/null
+++ b/static/v10/man2/fork.2
@@ -0,0 +1,32 @@
+.pa 1
+.he 'FORK (II)'3/15/72'FORK (II)'
+.ti 0
+NAME fork -- spawn new process
+.sp
+.ti 0
+SYNOPSIS sys fork / fork = 2.
+.br
+(new process return)
+.br
+(old process return)
+.sp
+.ti 0
+DESCRIPTION fork____
+is the only way new processes are created.
+The new process's core image is a copy of
+that of the caller of fork____; the only distinction
+is the return location and the fact
+that r0 in the old process contains the process ID
+of the new process.
+This process ID is used by wait____.
+.sp
+.ti 0
+SEE ALSO wait(II), exec(II)
+.sp
+.ti 0
+DIAGNOSTICS The error bit
+(c-bit) is set in the old process if a new process
+could not be created because of lack of process space.
+.sp
+.ti 0
+BUGS See wait(II) for a subtile bug in process destruction.