FORK(3F) COMMAND REFERENCE FORK(3F)
NAME
fork - create a copy of this process
SYNOPSIS
integer function fork()
DESCRIPTION
Fork creates a copy of the calling process. The only
distinction between the two processes is that the value
returned to one of them (referred to as the parent process)
will be the process ID of the copy. The copy is usually
referred to as the child process. The value returned to the
child process will be zero.
All logical units open for writing are flushed before the
fork to avoid duplication of the contents of I/O buffers in
the external file(s).
If the returned value is negative, it indicates an error and
will be the negation of the system error code. See
perror(3f).
A corresponding exec routine has not been provided because
there is no satisfactory way to retain open logical units
across the exec. However, the usual function of fork/exec
can be performed using system(3f).
FILES
/usr/lib/libU77.a
f77 UTek system interface library.
DIAGNOSTICS
If the returned value is negative, it indicates an error and
will be the negation of the system error code. See
perror(3f).
SEE ALSO
fork(2), wait(3f), kill(3f), system(3f), and perror(3f).
Printed 3/13/89 1
%%index%%
na:264,88;
sy:352,329;
de:681,1252;
fi:1933,191;
di:2124,279;
se:2403,221;
%%index%%000000000108