---
name: "rpwait"
section: "2"
platform: "linux"
package: "lam2-dev"
version: "6.3.2-3"
release: "Debian 2.2 (Potato)"
platforms: ["linux"]
url: "https://new.carta.tech/rpwait"
---

# rpwait(2)

Wait for a child LAM process to terminate.

## 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)](/rploadgo/2.md), [rpgo(2)](/rpgo/2.md) or [rpcreate(2)](/rpcreate/2.md), 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* argument points to the node identifier on which the child process was running. 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)](/kexit/2.md).

## SEE ALSO

[kexit(2)](/kexit/2.md), [lpdetach(2)](/lpdetach/2.md), [rpcreate(2)](/rpcreate/2.md), [rpgo(2)](/rpgo/2.md), [rploadgo(2)](/rploadgo/2.md)
