joyent/node — Issue #2605: Fork hangs unless process.exit() is called.
Author: cowboy
Created: 2012-01-24 14:17:35+00:00
State: open

Given this `parent.js`:

```javascript
var child = require('child_process').fork('child.js');
```

And this `child.js`:

```javascript
// nothing
```

If I run `node parent.js` it hangs. If `process.exit()` is called inside `child.js`, it exits normally.

Forked processes should behave like the parent process: if the event queue is empty and there's no more code to execute, it should exit.