diff options
-rw-r--r-- | src/xshmfence_alloc.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/xshmfence_alloc.c b/src/xshmfence_alloc.c index cba99a3..932adb9 100644 --- a/src/xshmfence_alloc.c +++ b/src/xshmfence_alloc.c @@ -78,6 +78,10 @@ xshmfence_alloc_shm(void) fd = memfd_create("xshmfence", MFD_CLOEXEC|MFD_ALLOW_SEALING); if (fd < 0) #endif +#ifdef SHM_ANON + fd = shm_open(SHM_ANON, O_RDWR|O_CLOEXEC, 0600); + if (fd < 0) +#endif { #ifdef O_TMPFILE fd = open(SHMDIR, O_TMPFILE|O_RDWR|O_CLOEXEC|O_EXCL, 0666); |