Fix for "Error: EMFILE, Too many open files 'js/shjs/lang/sh_python.js'" #1

merged 2 commits into from Oct 28, 2011


None yet

2 participants


If running original source on a large number of files, the following error may occur:
Error: EMFILE, Too many open files 'js/shjs/lang/sh_python.js'

This change fixes this problem by processing files one batch at a time. The size of each batch is defaulted to 100, but easily changeable by specifying the batchCount parameter.

This is backwards compatible with the original module.

pvorb commented Oct 28, 2011

Thank you very much. This looks good.

I already noticed this issue, but didn't have the time to fix it, yet. You helped me a lot.

@pvorb pvorb merged commit 95876ec into pvorb:master Oct 28, 2011
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment