Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -195,9 +195,13 @@ function stopProcess(alias) {

console.log('Process [' + alias + '] stopping with PID [' + proc.pid + '].');

// @ts-ignore
killSync(proc.pid, 'SIGTERM', true); // Kill tree
proc.kill(); // Does not work but just in case. (do not put before killSync)
try {
// @ts-ignore
killSync(proc.pid, 'SIGTERM', true); // Kill tree
proc.kill(); // Does not work but just in case. (do not put before killSync)
} catch (e) {
console.log('Process [' + alias + '] already exited — nothing to kill.');
}
}

export function stopAllProcesses() {
Expand Down
Loading