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.
72 The child process' resource utilizations
81 is cleared for the child.
85 function are called as appropriate before fork in the parent process,
86 and after the child is created, in parent and child.
88 The child process has only one thread,
89 corresponding to the calling thread in the parent process.
92 and therefore only async-signal-safe functions
95 are guaranteed to work in the child process until a call to
106 services in the child process.
111 function is not async-signal safe and creates a cancellation point
112 in the parent process.
116 do not need to be async-signal safe either.
122 but it is async-signal safe.
130 are available in the child if forked from multi-threaded parent.
132 child after
134 must be pre-resolved.
137 environment variable to the dynamic linker, or per-binary by passing the
150 of 0 to the child process and return the process ID of the child
151 process to the parent process.
152 Otherwise, a value of -1 is returned
153 to the parent process, no child process is created, and the global
161 .Bd -literal -offset indent
173 * If child is expected to use stdio(3), state of
175 * parent and child, to avoid double output and other
181 case -1:
184 printf("Hello from child process!\en");
187 * Since we wrote into stdout, child needs to use
190 * once in parent, and once in the child. If such
192 * terminating child with _exit(2) or _Exit(3).
199 printf("Hello from parent process (child's PID: %d)!\en", pid);
206 .Bd -literal -offset indent
207 Hello from parent process (child's PID: 27804)!
208 Hello from child process!
213 system call will fail and no child process will be created if:
214 .Bl -tag -width Er
216 The system-imposed limit on the total
226 the system-imposed limit
259 .St -p1003.1-2024 .