KILL(3PVM)
π NAME π
pvm_kill β bestie, this is the one that terminates a specified PVM process. yeet that process, respectfully. β¨
This is from the PVM Version 3.4 manual, section 3PVM. π
β¨ SYNOPSIS β¨
okay so here's how you call it, no cap:
C
int info = pvm_kill( int tid )
Fortran
call pvmfkill( tid, info )
π¦ PARAMETERS π¦
tidβ Integer task identifier of the PVM process you wanna kill. and likeβ¦ not yourself, bestie. this is not a self-own tool. πinfoβ Integer status code the routine hands back to you. anything less than zero means it went wrong. π
πΈ DESCRIPTION πΈ
So pvm_kill sends a terminate (SIGTERM) signal to the PVM process identified by tid. that's the whole vibe. π«Ά
But wait β on multiprocessors, the terminate signal gets replaced with a host dependent method for killing a process. so it's giving "same goal, different technique." periodt. π
If pvm_kill is successful, info will be 0. If some error occurs then info will be < 0. simple as. β¨
π¨ IMPORTANT BESTIE π¨ pvm_kill is not designed to kill the calling process. it literally cannot do that. do not try it.
So if you wanna kill yourself (the process, omg, the PROCESS π):
- In C, call
pvm_exit()followed byexit(). - In Fortran, call
pvmfexitfollowed bystop.
main character energy only applies to the process that's actually exiting. π
π EXAMPLES π
C:
info = pvm_kill( tid );
Fortran:
CALL PVMFKILL( TID, INFO )
look at her go. iconic. π
π ERRORS π
These error conditions can be returned by pvm_kill:
PvmBadParamβ you gave an invalidtidvalue. bestie. that's not a real task. πPvmSysErrβpvmdnot responding. it's ghosting you fr fr. π»
π SEE ALSO π
pvm_exit(3PVM)pvm_halt(3PVM)
and that's the whole page, bestie!! π₯° this was PVM Version 3.4, dated 30 August, 1993 β yes she's vintage, yes she still ate. π β¨ go forth and terminate processes responsibly. mwah! π«Ά
π¦ 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