Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
handleSignal = (signal: NodeJS.Signals) => {
this.start();
this.debug('SIGINT or SIGTERM handled');
this.stop(new SignalError(this.tool.msg('errors:processTerminated'), signal));
exit(2);
};