Proc::Killall(3)
π Proc::Killall(3) β NAME π
User Contributed Perl Documentation is the manual-name situation, bestie, and this section is NAME π«Ά
killall β Kill all instances of a process by pattern matching the command-line.
β¨ SYNOPSIS β¨
use Proc::Killall;
killall('HUP', 'xterm'); # SIGHUP all xterms
killall('KILL', '^netscape$'); # SIGKILL to "netscape"
π¦ DESCRIPTION π¦
okay so this module provides one function, killall(), and it takes two parameters: a signal name or number (see kill()) and a process pattern. that's the whole vibe check π¦
This pattern is matched against the process' command-line as the ps command would show it. and bestie, ps is not used internally β instead a package called Proc::ProcessTable is used. no cap.
killall searches the process table and sends that signal to all processes which match the pattern. the return value is the number of processes that were successfully signaled π
β οΈ If any kills failed, the $! variable will be set based on that last one that failed (even if a successful kill happened afterward). so yeah, that's the messy bit π
π AUTHOR π
Written in 2000 by Aaron Sherman <ajs@ajs.com> β iconic, honestly.
Proc::Killall is copyright 2000 by Aaron Sherman, and may be distributed under the same terms as Perl itself. periodt π
π PREREQUISITES π
Proc::ProcessTable is required for Proc::Killall to function. that's the prerequisite, bestie β don't skip it π
π SEE ALSO π
go look at perl, perlfunc, perlvar, and Proc::ProcessTable β¨
mwah π source/version says perl v5.42.0, date says 2023-06-22, and this page is Proc::Killall(3) β byeee, bestie π«Άβ¨
π¦ where this page comes from
- opensuse-leap 16.0: perl-Proc-ProcessTable 0.636-bp160.1.13 Β· (Artistic-1.0 OR GPL-1.0-or-later) AND GPL-2.0-only
- opensuse-leap 16.0: perl-Proc-ProcessTable 0.636-bp160.1.13 Β· (Artistic-1.0 OR GPL-1.0-or-later) AND GPL-2.0-only
- opensuse-leap 16.0: perl-Proc-ProcessTable 0.636-bp160.1.13 Β· (Artistic-1.0 OR GPL-1.0-or-later) AND GPL-2.0-only
- opensuse-leap 16.0: perl-Proc-ProcessTable 0.636-bp160.1.13 Β· (Artistic-1.0 OR GPL-1.0-or-later) AND GPL-2.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms