Syntax | #include <sys/wait.h> pid_t wait3(int *stat_loc, int options, struct rusage *resource_usage); CRTE111A30 pid_t wait364(int *stat_loc, int options, struct rusage64 *resource_usage); (End) | |
Description |
is equivalent to the call
except that on successful execution in the specified
If threads are used, the wait() and waitpid() functions affect the process or a thread in the following manner: The function The structure struct timeval ru_utime /* The total time the execution takes in user mode. The interval is specified in seconds and microseconds. */ struct timeval ru_stime /* The total time the execution takes in system mode. The interval is specified in seconds and microseconds. */ The structure struct timeval64 ru_utime /* The total time the execution takes in user mode. The interval is specified in seconds and microseconds. */ struct timeval64 ru_stime /* The total time the execution takes in system mode. The interval is specified in seconds and microseconds. */ | |
Return val. | see In addition to the errors specified for | |
Errors | see In addition to the errors specified for | |
| For the calling process there are no child processes which are not waited for, or | |
In addition to the errors specified for | ||
|
| POSIX-BC correction status < A47. |
Notes | If a parent process is terminated without waiting for its child processes, the initialization process (process ID = 1) takes over the child processes. | |
See also |
|