launcher-util: Force all weston_launcher_open()s to use O_CLOEXEC
authorDerek Foreman <derekf@osg.samsung.com>
Fri, 1 May 2015 16:46:36 +0000 (11:46 -0500)
committerPekka Paalanen <pekka.paalanen@collabora.co.uk>
Fri, 15 May 2015 15:02:14 +0000 (18:02 +0300)
commit2663c68330a90dc8db7501876ea0267b1a494d0c
treecc7847fe7c9626d03744b0710008122c42d77ae4
parent8f5acc2f3a29c3831af4ddd6bed57f703c98dc77
launcher-util: Force all weston_launcher_open()s to use O_CLOEXEC

Really, there's pretty much no time we'd ever want O_CLOEXEC unset,
as it will likely result in leaking fds to processes that aren't
interested in them or shouldn't have them.

This also removes the (now unused) code from weston_logind_open() that
could drop O_CLOEXEC.

Signed-off-by: Derek Foreman <derekf@osg.samsung.com>
Reviewed-by: Daniel Stone <daniels@collabora.com>
Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
src/launcher-util.c
src/logind-util.c