[Wayland-bugs] [Bug 766341] Do not rely on memfd as it requires a fairly recent kernel

gtk+ (GNOME Bugzilla) bugzilla at gnome.org
Fri May 13 11:55:58 UTC 2016


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

--- Comment #12 from Simon McVittie <simon.mcvittie at 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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/wayland-bugs/attachments/20160513/3c3ac225/attachment-0001.html>


More information about the wayland-bugs mailing list