KILL(3PVM)

πŸ“¦ version 3.4.6, in debian bookworm, ubuntu jammy

πŸ’… 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 by exit().
  • In Fortran, call pvmfexit followed by stop.

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 invalid tid value. bestie. that's not a real task. 😭
  • PvmSysErr β€” pvmd not 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