Permalink
Browse files

Allow signals to be used with process.on in addition to process.addLi…

…stener.
  • Loading branch information...
1 parent 65037ee commit 71009ad3fe35af72af6694478405eaa3dc86ca35 @mscdex mscdex committed with ry Aug 1, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/node.js
View
@@ -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)) {

0 comments on commit 71009ad

Please sign in to comment.