summaryrefslogtreecommitdiff
path: root/static/unix-v10/man2/fork.2
diff options
context:
space:
mode:
authorJacob McDonnell <jacob@jacobmcdonnell.com>2026-04-26 16:38:00 -0400
committerJacob McDonnell <jacob@jacobmcdonnell.com>2026-04-26 16:38:00 -0400
commit97d5c458cfa039d857301e1ca7d5af3beb37131d (patch)
treeb460cd850d0537eb71806ba30358840377b27688 /static/unix-v10/man2/fork.2
parentb89dc2331a50c63f8b33272a5c4c61ab98abdaa3 (diff)
build: Better Build System
Diffstat (limited to 'static/unix-v10/man2/fork.2')
-rw-r--r--static/unix-v10/man2/fork.232
1 files changed, 32 insertions, 0 deletions
diff --git a/static/unix-v10/man2/fork.2 b/static/unix-v10/man2/fork.2
new file mode 100644
index 00000000..300c1dec
--- /dev/null
+++ b/static/unix-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.