From ed8cefb4a236fe9bb605f314aa6effcbc083b503 Mon Sep 17 00:00:00 2001 From: remy Date: Thu, 3 Feb 2011 17:03:14 +0000 Subject: [PATCH] Moved nodemon to USRSIG2 as node 0.3.7 is using the USRSIG1 to trigger the debugger...which sucks for me - but now we're all fixed and working again - yay! --- nodemon.js | 4 ++-- package.json | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/nodemon.js b/nodemon.js index 24f9ace..c428184 100755 --- a/nodemon.js +++ b/nodemon.js @@ -34,7 +34,7 @@ function startNode() { node.on('exit', function (code, signal) { // exit the monitor, but do it gracefully - if (signal == 'SIGUSR1') { + if (signal == 'SIGUSR2') { // restart startNode(); } else { @@ -69,7 +69,7 @@ function startMonitor() { sys.print('\n\n'); if (node !== null) { - node.kill('SIGUSR1'); + node.kill('SIGUSR2'); } else { startNode(); } diff --git a/package.json b/package.json index 7210549..31f0fa8 100644 --- a/package.json +++ b/package.json @@ -5,10 +5,10 @@ "name": "Remy Sharp", "url": "http://github.com/remy" }, - "bin": { "nodemon" : "./nodemon" }, + "bin": { "nodemon" : "./nodemon.js" }, "repository": { "type" : "git", "url" : "http://github.com/remy/nodemon.git" }, "description": "Simple monitor script for use during development of a node.js app.", "keywords": ["monitor", "development", "restart", "autoload", "reload", "terminal"], - "version": "0.1.8", + "version": "0.2.0", "main": "./nodemon" }