Created
April 6, 2017 13:22
-
-
Save tomfun/f2862e3756c7890024b6c9bd43c526b3 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'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