Manual Reference Pages - PRIV_WAIT4 (3)
priv_wait4 - wait for process termination
int priv_wait4(pid_t pid, int *status, int options, struct rusage *ruseage);
wait4 function suspends execution of the current process until a child as specified
pid argument has exited, or until a signal is delivered whose action is to
terminate the current process or to call a signal handling function.
for more details, as this method parallels that one.
This method is only needed, or useful, for getting the return value of
processes created by
with the PRIV_RR_OLD_SLAVE_MONITORED flag set.
The actual wait4 call happens in the Privman server.
On success, the process ID of the child which exited is returned.
-1 is returned in the case of failure, with
errno set appropriately.
for more detail.
priv_wait4 only works for processes that are created by priv_rerunas with
the PRIV_RR_OLD_SLAVE_MONITORED flag set,
which seems a silly reason for another method.
Network Associates. Send email to <email@example.com>
|Unix ||PRIV_WAIT4 (3) ||SEPTEMBER 2002 |
Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.