slow-kill
Tries to kill a process nicely and after a timeout invokes kill(9).
const spawn = const TIMEOUT = 500 const proc = await
Installation
npm install slow-kill
API
slowKill
Tries to kill a process nicely (via SIGTERM) and forcefully kills it if it didn't exit after a given timeout.
Parameters
proc
Object the node process to killwait
Number? time to wait before invokingkill(9)
if process doesn't exit (optional, default500
)
Returns Promise a promise that resolves once the process exited
License
MIT