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
However, some Unix systems, such as macos, do not support O_CLOEXEC. In such cases, this library needs to fall back to setting the flag via fcntl. While not as airtight as the atomic syscall in a multithreaded program, it is better than nothing.
Currently this library only opens the database file with close-on-exec set if the kernel supports
O_CLOEXEC
(namely, modern versions of Linux).libmaxminddb/src/maxminddb.c
Lines 413 to 416 in 5842352
However, some Unix systems, such as macos, do not support
O_CLOEXEC
. In such cases, this library needs to fall back to setting the flag viafcntl
. While not as airtight as the atomic syscall in a multithreaded program, it is better than nothing.Something like this should work.
The text was updated successfully, but these errors were encountered: