Follow

If you are using Luvit [1] (Lua Node.js) with the coro-spawn [2] package to execute thousands of subprocesses (e.g. batch file processing), and need to capture stsou/stderr, make sure to pass `stdio={nil,true,true}` to *not* open stdin.

Otherwise you will quickly run out of file descriptors: `EMFILE: too many open files`.

[1] luvit.io
[2] github.com/luvit/lit/blob/mast

Sign in to participate in the conversation
Mastodon

The social network of the future: No ads, no corporate surveillance, ethical design, and decentralization! Own your data with Mastodon!