mirror of
https://github.com/bellard/quickjs.git
synced 2024-12-12 09:44:33 +08:00
d378a9f3a5
- use $(shell) make command to test if closefrom() is available - use closefrom() if available in js_os_exec() - limit the fallback loop to 1024 handles to avoid costly loop on linux alpine. PR inspired by @nicolas-duteil-nova
7 lines
72 B
C
7 lines
72 B
C
#include <unistd.h>
|
|
|
|
int main(void) {
|
|
closefrom(3);
|
|
return 0;
|
|
}
|