RPWAIT(2) LAM REMOTE LIBRARY RPWAIT(2)NAME
rpwait - Wait for a child LAM process to terminate.
C SYNOPSIS
int rpwait (int *nodeid, int *pid, int *status);
FORTRAN SYNOPSIS
subroutine RPWT (nodeid, pid, status, ierr)
integer nodeid, pid, status, ierr
DESCRIPTION
The rpwait() function enables a LAM process to wait for a child
process, started by the calling process with rploadgo(2), rpgo(2) or
rpcreate(2), to exit. The child process must have been created with
the RTF_WAIT runtime flag.
The arguments of rpwait() are all value returned. After the function
returns, the arguments hold information on one exited child process.
There is no function to wait on a specific process. The nodeid argu‐
ment points to the node identifier on which the child process was run‐
ning. The pid argument points to the child's process identifier. The
status argument points to the exit status code, passed by the child
process to kexit(2).
SEE ALSOkexit(2), lpdetach(2), rpcreate(2), rpgo(2), rploadgo(2)LAM 7.1.2 March, 2006 RPWAIT(2)