Skip to content

Instantly share code, notes, and snippets.

@cloudhead
Created February 21, 2011 23:51
Show Gist options
  • Save cloudhead/837942 to your computer and use it in GitHub Desktop.
Save cloudhead/837942 to your computer and use it in GitHub Desktop.
Fix for process.removeListener(signal)
From 40ca5c222a853f20654e059e8ccf551b4f610874 Mon Sep 17 00:00:00 2001
From: cloudhead <alexis@cloudhead.io>
Date: Mon, 21 Feb 2011 18:49:32 -0500
Subject: [PATCH] fix process.removeListener with signal events
---
src/node.js | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/node.js b/src/node.js
index 789cb9b..6b0aa6f 100644
--- a/src/node.js
+++ b/src/node.js
@@ -232,7 +232,7 @@
w.start();
} else if (this.listeners(type).length === 1) {
- signalWatchers[event].start();
+ signalWatchers[type].start();
}
}
--
1.7.4.1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment