Go to the first, previous, next, last section, table of contents.


waitpid

Syntax

#include <sys/wait.h>

pid_t pid = waitpid((pid_t pid, int *status, int options);

Description

Currently, this function always fails. A -1 is returned and errno is set to indicate there are no children.

Return Value

If successful, this function returns the exit status of the child. If there is an error, these functions return -1 and set errno to indicate the error type.

Bugs

Currently, this function always fails.

Portability

not ANSI, POSIX


Go to the first, previous, next, last section, table of contents.