Lines Matching +full:parent +full:- +full:child

46 The new process (child process) is an exact copy of the
47 calling process (parent process) except for the following:
48 .Bl -bullet -offset indent
50 The child process has a unique process ID.
52 The child process has a different parent
53 process ID (i.e., the process ID of the parent process).
55 The child process has its own copy of the parent's descriptors,
58 which are not inherited from the parent process.
61 the child and the parent, so that an
63 on a descriptor in the child process can affect a subsequent
67 by the parent.
71 Any file descriptors that were marked with the close-on-fork flag,
80 will not be present in the child process, but remain open in the parent.
82 The child process' resource utilizations
91 is cleared for the child.
95 function are called as appropriate before fork in the parent process,
96 and after the child is created, in parent and child.
98 The child process has only one thread,
99 corresponding to the calling thread in the parent process.
102 and therefore only async-signal-safe functions
105 are guaranteed to work in the child process until a call to
116 services in the child process.
121 function is not async-signal safe and creates a cancellation point
122 in the parent process.
126 do not need to be async-signal safe either.
132 but it is async-signal safe.
140 are available in the child if forked from multi-threaded parent.
142 child after
144 must be pre-resolved.
147 environment variable to the dynamic linker, or per-binary by passing the
160 of 0 to the child process and return the process ID of the child
161 process to the parent process.
162 Otherwise, a value of -1 is returned
163 to the parent process, no child process is created, and the global
171 .Bd -literal -offset indent
183 * If child is expected to use stdio(3), state of
185 * parent and child, to avoid double output and other
191 case -1:
194 printf("Hello from child process!\en");
197 * Since we wrote into stdout, child needs to use
200 * once in parent, and once in the child. If such
202 * terminating child with _exit(2) or _Exit(3).
209 printf("Hello from parent process (child's PID: %d)!\en", pid);
216 .Bd -literal -offset indent
217 Hello from parent process (child's PID: 27804)!
218 Hello from child process!
223 system call will fail and no child process will be created if:
224 .Bl -tag -width Er
226 The system-imposed limit on the total
236 the system-imposed limit
269 .St -p1003.1-2024 .