joyent/node — Issue #1870: child.fork()  document error
Author: windyrobin
Created: 2011-10-12 11:54:42+00:00
State: open

the document here:
http://nodejs.org/docs/v0.5.9/api/child_processes.html#child_process.fork

process.on('message', function(m, serverHandle) {
if (serverHandle) {
var server = require('child_process').createServer();
server.listen(serverHandle);
}
});

I think it should be require("net").createServer ,
besides that :

var server = require('net').createServer();
var child = require('child_process').fork(__dirname + '/child.js');
// Open up the server object and send the handle.
child.send({ server: true }, server._handle);

after we createServer , the server._handle is null until we call server.listen method ,
so we send a null handle to child process?

what's your opinion?