joyent/node — Issue #2663: Allow isolates to self terminate
Author: AndreasMadsen
Created: 2012-02-01 18:41:48+00:00
State: open

Isolates can't self terminate, please add `.disconnect` support.

```JavaScript
var fork = require('child_process').fork;

if (process.argv[2] === 'child') {
setTimeout(function () {
console.log('Something happend, but after this thread should self terminate');
}, 200);
} else {
var child = fork(process.argv[1], ['child'], {thread: true});
//child.disconnect(); // disconnect IPC allowing child to die
}
```