From 923c7962e4ff80c92ba4010db2a1d36c2b32bbda Mon Sep 17 00:00:00 2001 From: Gordon Hall Date: Wed, 11 Jan 2017 16:29:11 -0500 Subject: [PATCH] catch SIGINT instead of SIGKILL --- lib/api.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/api.js b/lib/api.js index b68dc47..4da09a5 100644 --- a/lib/api.js +++ b/lib/api.js @@ -130,7 +130,7 @@ class RPC { self._log(`share ${nodeId} exited with code ${code}`); clearInterval(uptimeCounter); - if (signal !== 'SIGKILL' && !maxRestartsReached) { + if (signal !== 'SIGINT' && !maxRestartsReached) { share.meta.numRestarts++; self.restart(nodeId, () => null); }