---
name: "pvm_parent"
section: "3"
platform: "linux"
package: "pvm-dev"
version: "3.4.2-8"
release: "Debian 3.0 (Woody)"
platforms: ["linux"]
url: "https://new.carta.tech/pvm_parent"
---

# pvm\_parent(3)

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

## NAME

pvm\_parent - Returns the tid of the process that spawned the calling process.

## SYNOPSIS

```
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.**

## DESCRIPTION

**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.**

## SEE ALSO
