delorie.com/djgpp/doc/libc/libc_858.html | search |
[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
#include <sys/wait.h> pid_t pid = wait(int *status); |
This function causes its caller to delay its execution until a signal
is received or one of its child processes terminates. If any child has
terminated, return is immediate, returning the process ID and its exit
status, if that's available. If no children processes were called since
the last call, then -1 is returned and errno
is set.
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.
Currently, this function always fails.
ANSI/ISO C | No |
POSIX | 1003.2-1992; 1003.1-2001 |
webmaster | delorie software privacy |
Copyright © 2004 | Updated Apr 2004 |