Proc::Killfam works with IPC::Open3 to achieve what I want, Thanks ! But I'm not sure how my manager will react to adding a non-core module dependency.
But I'm not sure how my manager will react to adding a non-core module dependency.
You could copy the essential code from the Killfam.pm right into your code, avoiding using a module. The code is very simple, use "perldoc -m Proc::Killfam" to see the module's simple code.