Sort of bug fix for pkill and process not found
This commit is contained in:
@@ -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}`);
|
||||
|
||||
Reference in New Issue
Block a user