Merge pull request #66 from hybridgroup/sigterm

Switch from process.exit() to process.kill()
This commit is contained in:
Ron Evans 2014-01-09 15:03:38 -08:00
commit e979ebb943
2 changed files with 2 additions and 2 deletions

2
dist/cylon.js vendored
View File

@ -70,7 +70,7 @@
} }
process.on("SIGINT", function() { process.on("SIGINT", function() {
Cylon.getInstance().stop(); Cylon.getInstance().stop();
return process.exit(); return process.kill();
}); });
} }

View File

@ -51,7 +51,7 @@ class Cylon
process.on "SIGINT", -> process.on "SIGINT", ->
Cylon.getInstance().stop() Cylon.getInstance().stop()
process.exit() process.kill()
# Public: Creates a new Robot # Public: Creates a new Robot
# #