From 71009ad3fe35af72af6694478405eaa3dc86ca35 Mon Sep 17 00:00:00 2001 From: Brian Date: Sat, 31 Jul 2010 20:13:47 -0400 Subject: [PATCH] Allow signals to be used with process.on in addition to process.addListener. --- src/node.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/node.js b/src/node.js index 82386ae2ec..70a291739a 100644 --- a/src/node.js +++ b/src/node.js @@ -77,7 +77,7 @@ process.compile("(function (exports) {" }; // Wrap addListener for the special signal types - process.addListener = function (type, listener) { + process.on = process.addListener = function (type, listener) { var ret = addListener.apply(this, arguments); if (isSignal(type)) { if (!signalWatchers.hasOwnProperty(type)) {