我只在我的 Rackspace Ubuntu Maverick 实例上收到以下错误......但在我的本地 Ubuntu Lucid VM 上没有:
pipe(): Too many open files
pipe(): Too many open files
child_process.js:223
var fds = this._internal.spawn(path,
^
Error: Error spawning
at ChildProcess.spawn (child_process.js:223:28)
at child_process.js:10:15
etc..etc..
生成它的代码:
function getHeader(url, callback)
{
var client = spawn('curl', ['-I', url]);
client.stdout.on('data', function(data)
{
client.kill('SIGTERM');
callback(data.toString('utf8'));
});
}