shared: introduce os_fd_clear_cloexec() 25/28025/1
authorMarius Vlad <marius.vlad@collabora.com>
Mon, 19 Sep 2022 19:56:12 +0000 (22:56 +0300)
committerMarius Vlad <marius.vlad@collabora.com>
Thu, 22 Sep 2022 11:13:21 +0000 (14:13 +0300)
commit1b93121761e16117d1926e8d57bad17cc5b2701a
tree69e2849f1227eba5c6fff180aa84276410f6cb44
parentd08a5b2010f6e6feb1642ebf8e8444c4091d70dc
shared: introduce os_fd_clear_cloexec()

This function will be used between fork() and exec() to remove the
close-on-exec flag. The first user will be compositor/xwayland.c.

Bug-AGL: SPEC-4510

Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.com>
Signed-off-by: Marius Vlad <marius.vlad@collabora.com>
Change-Id: Ib2245394654651583f9d59785540962ae4cb8a28
shared/os-compatibility.c
shared/os-compatibility.h