You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Use closefrom() to close open file descriptors (#712)
Replace the naive close() loop in js_os_exec with closefrom().
On my system RLIMIT_NOFILE is set to 1 million and the delay from the
loop gets noticeable when I spawn many processes.
Use dlsym() to look up closefrom() because it's not available everywhere
(looking at you, musl.)
Fixes: #711
0 commit comments