File:  [Research Unix] / researchv10dc / dist / man / v3 / man2 / fork.2
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Tue Apr 24 17:21:34 2018 UTC (8 years, 1 month ago) by root
Branches: belllabs, MAIN
CVS tags: researchv10, HEAD
researchv10 Dan Cross

.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.

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.