Registers a listener for the given signal.
tjs.addSignalListener('SIGINT', handleSigint); Copy
tjs.addSignalListener('SIGINT', handleSigint);
Which signal to register a listener for.
Listener function.
Registers a listener for the given signal.