PARENT(3PVM)
β¨ PARENT(3PVM) β¨
okay bestie, gather round π this is pvm_parent from PVM Version 3.4, and it's literally the "who's your parent" of the PVM world. Like, every process has a origin story and this function is the one that spills the tea π«
π NAME π
pvm_parent β returns the tid of the process that spawned the calling process.
it's giving "who brought me into this world" energy and honestly? iconic.
πΈ SYNOPSIS πΈ
C
int tid = pvm_parent( void )
Fortran
call pvmfparent( tid )
π¦ PARAMETERS π¦
tidβ an Integer. It hands you back the task identifier of the parent of the calling process. BUT β and this is the plot twist β if the calling process was not created withpvm_spawn, thentid = PvmNoParent. no cap. π«Ά
π DESCRIPTION π
So pvm_parent returns the tid of the process that spawned the calling process. Simple. Elegant. Main character behaviour. π
And if the calling process was not created with pvm_spawn? Then tid gets set to PvmNoParent. That's the whole vibe check. periodt. β¨
π EXAMPLES π
C:
tid = pvm_parent();
Fortran:
CALL PVMFPARENT( TID )
look at you go, writing code π
π ERRORS π
Here's the one error condition that pvm_parent can throw back at you:
PvmNoParentβ the calling process was not created withpvm_spawn. so yeah, no parent, no tid, sad little orphan arc πPvmSysErrβ can't contact localpvmd. the pvmd ghosted you fr fr π
ngl if you're seeing PvmSysErr something is deeply wrong with your local daemon situation. not a vibe.
π₯ SEE ALSO π₯
bestie... there's literally nothing listed here. π§ the original page left this section blank, so we're leaving it blank too. an empty SEE ALSO is its own kind of mood. π
and that's the whole page!! π written 30 August, 1993, part of PVM Version 3.4 β shoutout to the absolute legends who shipped this back in the day, no notes, ate and left no crumbs ππΈβ¨
π¦ where this page comes from
- debian bookworm: pvm-dev 3.4.6-5
- ubuntu jammy: pvm-dev 3.4.6-3.2
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms