On Wed Jun 7 20:54:08 2023 +0000, Rémi Bernon wrote:
We're not using shm_open anywhere else and I have no idea how portable it is and if this is acceptable, or if there's a better way.
We need to create a shared memory fd in some way, and [`shm_open`](https://pubs.opengroup.org/onlinepubs/9699919799/functions/shm_open.html) is the standard POSIX way to do this, so, AFAIK, we are safe from a portability perspective.
There are better platform-specific mechanism to get anonymous shared memory compared to plain `shm_open` + `shm_unlink` (e.g., `memfd_create` on linux, `shm_open(SHM_ANON)` on FreeBSD), which we can introduce in the future if we want.