• Emmanuel Gil Peyrot's avatar
    Wayland: Use memfd_create() and seals if available · 3e884aea
    Emmanuel Gil Peyrot authored
    This allows the compositor to avoid having to setup and teardown a
    SIGBUS signal handler whenever it needs to read from this surface, as it
    knows we won’t be able to shrink the file and so doesn’t have to protect
    against that.
    
    This codepath will only be used on Linux ≥ 3.17 with glibc ≥ 2.27, and
    possibly other kernels and libc.  The former code will continue to be
    used as a fallback, either if memfd_create() fails or if it isn’t
    available.
    3e884aea
glfw_config.h.in 2.76 KB