pvm_parent(3)

pvm_parent3

Returns the tid of the process that spawned the calling process.

Usage

C	int tid = pvm_parent( void )
Fortran	call pvmfparent( tid )

Parameters

tid

Integer returns the task identifier of the parent of the calling process. If the calling process was not created with pvm_spawn, then tid = PvmNoParent.

Overview

The routine pvm_parent returns the tid of the process that spawned the calling process. If the calling process was not created with pvm_spawn, then tid is set to PvmNoParent.

Examples

C:
	tid = pvm_parent();

Fortran:
	CALL PVMFPARENT( TID )

Errors

This error condition can be returned by pvm_parent.

PvmNoParent

The calling process was not created with pvm_spawn.

PvmSysErr

Can't contact local pvmd.

Releases

Unchanged in 4 releases since Debian 2.0 (Hamm).

  1. 2.0–3.0

From pvm-dev 3.4.2-8 in Debian 3.0 (Woody). Parsed by carta from the page's man source.