From 8fc5a7f1bd8544e1f8cb81313b5c1feef903df8b Mon Sep 17 00:00:00 2001 From: Andrew Stewart Date: Thu, 9 Jan 2014 14:59:22 -0800 Subject: [PATCH] Switch from process.exit() to process.kill() Moves to use the kill() method to make sure Cylon shuts down, by sending a SIGTERM signal to the running process. --- dist/cylon.js | 2 +- src/cylon.coffee | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dist/cylon.js b/dist/cylon.js index cb450f8..5446110 100644 --- a/dist/cylon.js +++ b/dist/cylon.js @@ -70,7 +70,7 @@ } process.on("SIGINT", function() { Cylon.getInstance().stop(); - return process.exit(); + return process.kill(); }); } diff --git a/src/cylon.coffee b/src/cylon.coffee index 2e5caf0..87d04d6 100644 --- a/src/cylon.coffee +++ b/src/cylon.coffee @@ -51,7 +51,7 @@ class Cylon process.on "SIGINT", -> Cylon.getInstance().stop() - process.exit() + process.kill() # Public: Creates a new Robot #