DOKK / manpages / debian 11 / pvm-dev / pvm_parent.3pvm.en
PARENT(3PVM) PVM Version 3.4 PARENT(3PVM)

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

C	int tid = pvm_parent( void )

Fortran call pvmfparent( 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.

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.

C:
	tid = pvm_parent();

Fortran:
	CALL PVMFPARENT( TID )

This error condition can be returned by pvm_parent.

The calling process was not created with pvm_spawn.
Can't contact local pvmd.

30 August, 1993