bproc_rfork

Name

bproc_rfork -- fork a child onto remote node

Synopsis

#include <sys/bproc.h>

int bproc_rfork( int node );

Description

bproc_rfork is a combination of fork and bproc_move. bproc_rfork has the same semantics as fork. bproc_rfork creates a copy of the calling process on another node.

Return Value

On success, bproc_rfork returns the process ID of the child to the parent process and zero to the child process. On error, bproc_rfork returns -1 to the parent process and errno will be set appropriately.

Errors

bproc_rfork can return any of the errors for fork or bproc_move.

See Also

fork(2), bproc_move(2), bproc_execmove(2)