Skip to content

os, shm: fcntl()'s third argument is integer, not pointer

Adam Jackson requested to merge ajax/xserver:fcntl-flags into master

All of these uses were attempting to set FD_CLOEXEC, which happens to be (1<<0). Since flags is going to be aligned in memory, its address is never going to have the low bit set, so we were never actually setting what we meant to.

Fixes: #1114 (closed)

Merge request reports

Loading