waits - retrieve status on exiting processes
Synopsis
Description
See Also
#include <sys/wait.h> int exit(struct exitst *w, int block_ok);struct exitst { pid_t e_pid; /* PID of exit() */ int e_code; /* Argument to exit() */ ulong e_usr, e_sys; /* CPU time in user and sys */ struct exitst *e_next; /* Next in list */ char e_event[ERRLEN]; /* Name of event if killed */ };
waits() retrieves status on children processes of the current process. Such status is queued during the process of a child exiting, and includes information on PID, any argument to exit(), CPU time used, and the name of the event which caused process terminating (if any).
exit(2)
WAITS (2) |