Proc::Killfam(3)

🌸 NAME 🌸

okay so bestie, you’re looking at the user-contributed Perl documentation manual page for Proc::Killfam(3) β€” and the whole vibe is: Proc::Killfam β€” kill a list of pids, and all their sub-children. πŸ’…

πŸŽ€ SYNOPSIS πŸŽ€

use Proc::Killfam;
killfam $signal, @pids;

πŸ¦‹ DESCRIPTION πŸ¦‹

so killfam accepts the same arguments as the Perl builtin kill command β€” same args, no cap β€” but additionally, it recursively searches the process table for children and kills them as well. ✨

like, it’s not just the pids you named, bestie β€” it goes looking for the children too, and kills them as well. periodt. πŸ”₯

πŸ’– EXAMPLE πŸ’–

killfam 'TERM', ($pid1, $pid2, @more_pids);

πŸ‘‘ KEYWORDS πŸ‘‘

  • kill
  • signal

mwah πŸ’‹ this page is from perl v5.42.0, dated 2023-06-22 β€” see u next time, bestie 🫢

πŸ“¦ where this page comes from