Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

cluster-reload

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cluster-reload - npm Package Compare versions

Comparing version 1.0.1 to 1.0.2

5

History.md
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",

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