https://bugzilla.gnome.org/show_bug.cgi?id=766341

--- Comment #12 from Simon McVittie <simon.mcvit...@collabora.co.uk> ---
(In reply to Ray Strode [halfline] from comment #11)
> we may have to check for EPERM in addition to ENOSYS.  see this, oddly
> coincidental, irc log from this morning

I'd be tempted to ignore errno and just assume that any memfd_create() failure
should result in fallback... is there any reason memfd_create() could fail
where trying shm_open() wouldn't be a valid fallback?

Looking at the memfd_create man page, EMFILE/ENFILE would fail in the same way
for shm_open(), ENOMEM would probably have the same result for shm_open() too,
and EINVAL can only happen if it's used wrong.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
wayland-bugs mailing list
wayland-bugs@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/wayland-bugs

Reply via email to