Sort of bug fix for pkill and process not found

This commit is contained in:
Scott Idem
2022-05-07 17:15:47 -04:00
parent d67d0085ef
commit 60df29243c

View File

@@ -476,7 +476,8 @@ exports.kill_processes = async function ({process_name = null}) {
}
child_process.exec(cmd, (err, stdout, stdin) => {
if (err) throw err;
// if (err) throw err;
if (err) console.log(err);
console.log(stdout);
});
console.log(`Killed processes matching ${process_name}`);