Created
February 25, 2020 18:20
-
-
Save yurynix/e2bc4def0c7ce27241df0f2b7f98de7d to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
… | |
const processStats = await getProcessStats(); | |
printProcessStats(processStats); | |
processStats.forEach(processInfo => { | |
console.log(`Sending SIGKILL to pid: ${processInfo.pid} exe: ${processInfo.exe}`); | |
process.kill(processInfo.pid, 'SIGKILL'); | |
}); | |
… |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment