mirror of
https://github.com/nodejs/node.git
synced 2024-12-01 16:10:02 +01:00
9e26dab150
For making easy worker processes.
10 lines
221 B
JavaScript
10 lines
221 B
JavaScript
var assert = require('assert');
|
|
|
|
console.log("NODE_CHANNEL_FD", process.env.NODE_CHANNEL_FD);
|
|
assert.ok(process.env.NODE_CHANNEL_FD);
|
|
|
|
var fd = parseInt(process.env.NODE_CHANNEL_FD);
|
|
assert.ok(fd >= 0);
|
|
|
|
process.exit(0);
|