cluster-reload
Advanced tools
Comparing version 1.0.1 to 1.0.2
1.0.2 / 2015-12-23 | ||
================== | ||
* fix: Windows not support SIGQUIT, use SIGTERM instead | ||
1.0.1 / 2015-06-30 | ||
@@ -3,0 +8,0 @@ ================== |
12
index.js
@@ -1,4 +0,2 @@ | ||
/**! | ||
* cluster-reload - index.js | ||
* | ||
/** | ||
* Copyright(c) node-modules and other contributors. | ||
@@ -21,2 +19,4 @@ * MIT Licensed | ||
// Windows not support SIGQUIT https://nodejs.org/api/process.html#process_signal_events | ||
var KILL_SIGNAL = 'SIGTERM'; | ||
var reloading = false; | ||
@@ -54,5 +54,5 @@ var reloadPedding = false; | ||
// console.log('firstWorker %s %s', firstWorker.id, firstWorker.state); | ||
firstWorker.kill('SIGQUIT'); | ||
firstWorker.kill(KILL_SIGNAL); | ||
setTimeout(function () { | ||
firstWorker.process.kill('SIGQUIT'); | ||
firstWorker.process.kill(KILL_SIGNAL); | ||
}, 100); | ||
@@ -76,3 +76,3 @@ } | ||
// console.log('worker %s %s', worker.id, worker.state); | ||
worker.kill('SIGQUIT'); | ||
worker.kill(KILL_SIGNAL); | ||
} | ||
@@ -79,0 +79,0 @@ |
{ | ||
"name": "cluster-reload", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "cluster workers reload", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
6152