Permalink
Browse files

sigterm after 2 seconds

  • Loading branch information...
maxogden committed Jan 29, 2016
1 parent 4825922 commit e73979e507000c8fbd09752a5882d567fe8a3b9a
Showing with 8 additions and 0 deletions.
  1. +8 −0 cli.js
View
8 cli.js
@@ -105,6 +105,14 @@ function startProgressLogging (stats) {
printSwarmStatus(stats)
}, 500)
printSwarmStatus(stats)
process.on('SIGINT', function () {
process.exit(1)
setTimeout(function () {
// sigterm if it is still running
process.kill(process.pid)
}, 2000)
})
}
function printScanProgress (stats) {

0 comments on commit e73979e

Please sign in to comment.