cloudhead/less.js — Issue #570: Suggest fs.closeSync(fd) following write in lessc
Author: bdalziel
Created: 2012-01-13 09:07:38+00:00
State: open

I ran into an issue where a long running process looping on code containing "fs.openSync" eventually threw up its hands and complained about too many open files.

Not an issue for lessc when used as intended, but I don't think it would hurt, and anyone else building off of this code wouldn't hit the same issue.

Here is the block: https://github.com/cloudhead/less.js/blob/master/bin/lessc#L108
And the fs docs: Although it isn't an issue for the code when used as intended,