source: trunk/doc/Fork.os2@ 1336

Last change on this file since 1336 was 1281, checked in by bird, 22 years ago

...

  • Property cvs2svn:cvs-rev set to 1.3
  • Property svn:eol-style set to native
  • Property svn:executable set to *
  • Property svn:keywords set to Author Date Id Revision
File size: 30.8 KB
Line 
1$Id: Fork.os2 1281 2004-03-06 21:48:26Z bird $
2
3Fork Design Draft
4--------------------
5
61.0 Intro
7----------
8
9blah.
10
11
121.1 The SuS fork() Description
13------------------------------
14
15NAME
16
17 fork - create a new process
18
19SYNOPSIS
20
21 #include <unistd.h>
22
23 pid_t fork(void);
24
25DESCRIPTION
26
27 The fork() function shall create a new process. The new process (child process) shall be an exact copy of the calling process (parent process) except as detailed below:
28
29 * The child process shall have a unique process ID.
30 * The child process ID also shall not match any active process
31 group ID.
32 * The child process shall have a different parent process ID,
33 which shall be the process ID of the calling process.
34 * The child process shall have its own copy of the parent's file
35 descriptors. Each of the child's file descriptors shall refer
36 to the same open file description with the corresponding file
37 descriptor of the parent.