Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Error: spawn EMFILE] #16

Open
maxnikulin opened this issue Jan 22, 2016 · 0 comments
Open

[Error: spawn EMFILE] #16

maxnikulin opened this issue Jan 22, 2016 · 0 comments

Comments

@maxnikulin
Copy link

It seems that I have faced file descriptor leak in sync-exec

var syncExec = require('sync-exec');
var i = 0;
try {
    for (; i < 1000; ++i) {
        syncExec("echo 1");
    }
} catch (e) {
    console.log(i, e);
}
336 { [Error: spawn EMFILE] code: 'EMFILE', errno: 'EMFILE', syscall: 'spawn' }

Sometimes the script hangs on the first iteration.

node -v: v0.10.25
OS: Linux

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant