pkrumins / node-tree-kill

kill trees of processes
MIT License
333 stars 37 forks source link

fix: sanitise pid parameter #31

Closed robcresswell closed 4 years ago

robcresswell commented 4 years ago

This patch adds a simple check to the process ID passed in, ensuring it is a number, and throwing an error otherwise. The aim is to fix the issue explained here:

Fixes: #30