child_process: fix typo in internal message event name
authorAndreas Madsen <amwebdk@gmail.com>
Wed, 11 Jan 2012 08:02:51 +0000 (09:02 +0100)
committerBen Noordhuis <info@bnoordhuis.nl>
Wed, 11 Jan 2012 08:59:50 +0000 (09:59 +0100)
lib/cluster.js
test/simple/test-child-process-internal.js

index cdd000b..6f003f5 100644 (file)
@@ -295,7 +295,7 @@ function Worker(customEnv) {
   }
 
   // Internal message: handle message
-  this.process.on('inernalMessage', function(message, handle) {
+  this.process.on('internalMessage', function(message, handle) {
     debug('recived: ', message);
 
     // relay to handleMessage
index 91e90d4..dd7ce55 100644 (file)
@@ -47,7 +47,7 @@ if (process.argv[2] === 'child') {
   });
 
   var gotInternal;
-  child.once('inernalMessage', function(data) {
+  child.once('internalMessage', function(data) {
     gotInternal = data;
   });