joyent/node — Issue #2355: Bug when sending undefined from worker
Author: AndreasMadsen
Created: 2011-12-17 22:21:20+00:00
State: open

This one make a bug:

```JavaScript
var cluster = require('cluster');
var isChild = process.argv[1] === 'child';

if (cluster.isWorker) {
process.send(undefined);
} else {
var child = cluster.fork();
}
```

This is because of https://github.com/joyent/node/blob/master/lib/child_process.js#L100. It should also happen when using `child_process.fork` but it dose not. I suspect it has something to do with the jsonBuffer.