Skip to content

[Error: spawn EMFILE] #16

@maxnikulin

Description

@maxnikulin

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions