Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Linux/EmulatedFiles: Check return for memfd_create & work around hack
xshmwrap is a hack to make libxshmfence use shared memory files for futexes instead of memfds. To do this, it bans memfd_create(*, MFD_ALLOW_SEALING | MFD_CLOEXEC) using seccomp-bpf. This happens to hit the FEX GenTmpFD() code. If this failure happens, work around it by setting the FD_CLOEXEC flag separately. Signed-off-by: Asahi Lina <lina@asahilina.net>
- Loading branch information