proteus-cluster
Advanced tools
Comparing version 1.0.5 to 1.0.6
@@ -102,3 +102,2 @@ /** | ||
// attache signals | ||
process.on('SIGUSR1', forceShutdown); // restart workers | ||
process.on('SIGUSR2', restart); // restart workers | ||
@@ -230,4 +229,7 @@ process.on('SIGHUP', function() {}); // ignore SIGHUP for background processing | ||
} | ||
logger.debug('process exit with code 0'); | ||
process.exit(0); | ||
// in case worker processes are still alive | ||
process.nextTick(function(){ | ||
logger.debug('process exit with code 0'); | ||
process.exit(0); | ||
}); | ||
}); | ||
@@ -234,0 +236,0 @@ } |
{ | ||
"name": "proteus-cluster", | ||
"version": "1.0.5", | ||
"version": "1.0.6", | ||
"scripts": { | ||
@@ -5,0 +5,0 @@ "start": "node app", |
@@ -134,13 +134,2 @@ proteus-cluster | ||
run from shell | ||
```shell | ||
$ node cluster.js | ||
$ ps ax | grep node | grep -v 'grep' | ||
2051 s000 S+ 0:00.09 node cluster.js | ||
2052 s000 R+ 0:00.42 node /proteus-cluster/test/worker.js | ||
2053 s000 R+ 0:00.42 node /proteus-cluster/test/worker.js | ||
$ kill -SIGUSR1 2051 | ||
``` | ||
run from program | ||
@@ -312,13 +301,2 @@ | ||
シェルから実行 | ||
```shell | ||
$ node cluster.js | ||
$ ps ax | grep node | grep -v 'grep' | ||
2051 s000 S+ 0:00.09 node cluster.js | ||
2052 s000 R+ 0:00.42 node /proteus-cluster/test/worker.js | ||
2053 s000 R+ 0:00.42 node /proteus-cluster/test/worker.js | ||
$ kill -SIGUSR1 2051 | ||
``` | ||
プログラムから実行 | ||
@@ -325,0 +303,0 @@ |
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
390
18588
360
3