Socket
Socket
Sign inDemoInstall

proteus-cluster

Package Overview
Dependencies
Maintainers
3
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

proteus-cluster - npm Package Compare versions

Comparing version 1.1.3 to 1.1.4

34

lib/cluster.js

@@ -279,15 +279,25 @@ /**

// if all worker has been disconnected
cluster.disconnect(function(){
logger.debug('all workers has been disconnected');
if (_pidfile) {
try {
fs.unlinkSync(_pidfile);
} catch (e) {
cluster.disconnect(function() {
setTimeout(function() {
function _shutdown() {
logger.debug('all workers has been disconnected');
if (_pidfile) {
try {
fs.unlinkSync(_pidfile);
} catch (e) {
}
}
// in case worker processes are still alive
process.nextTick(function() {
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);
});
if (!Object.keys(_disconnectTimer).length) {
return _shutdown();
}
setTimeout(_shutdown, _disconnectTimeout);
}, 100);
});

@@ -294,0 +304,0 @@ }

{
"name": "proteus-cluster",
"version": "1.1.3",
"version": "1.1.4",
"scripts": {

@@ -5,0 +5,0 @@ "start": "node app",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc