Skip to content

Instantly share code, notes, and snippets.

@tomfun
Created April 6, 2017 13:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tomfun/f2862e3756c7890024b6c9bd43c526b3 to your computer and use it in GitHub Desktop.
Save tomfun/f2862e3756c7890024b6c9bd43c526b3 to your computer and use it in GitHub Desktop.
'use strict';
const signals = [
'SIGUSR1',
'SIGTERM',
'SIGINT',
'SIGPIPE',
'SIGHUP',
'SIGTERM',
'SIGINT',
'SIGBREAK',
'SIGWINCH',
// 'SIGKILL',
// 'SIGSTOP',
'SIGBUS',
'SIGFPE',
'SIGSEGV',
'SIGILL',
];
signals.forEach((signal) => {
process.on(signal, () => {
console.log('on: ', signal);
})
})
setTimeout(() => {
console.log('go home');
}, 1 * 60 * 1000)
// http.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment