weston: Set CLOEXEC on stdin
authorDerek Foreman <derekf@osg.samsung.com>
Fri, 24 Mar 2017 14:41:12 +0000 (09:41 -0500)
committerQuentin Glidic <sardemff7+git@sardemff7.net>
Fri, 24 Mar 2017 20:16:43 +0000 (21:16 +0100)
commitf0d39b2243e56cf81d97b130b3104978c1c70ef4
tree0609a436359943218df3bd93da9426f9af80c2be
parent5ef6bd7eeec67b9726b78037a868d9f0975d3522
weston: Set CLOEXEC on stdin

We don't want to leak this into apps launched from the panel.

stdout and stderr are left for now because some things launched
by weston - such as weston-keyboard - share weston's log by
printing to those fds.

I'm singling out stdin because it's never needed by a child process
and because it's value is 0, which makes it easy to accidentally
do bad things to (commit 5c611d933f60f720db98331c9c1c6ed4420f9782)

Signed-off-by: Derek Foreman <derekf@osg.samsung.com>
Reviewed-by: Quentin Glidic <sardemff7+git@sardemff7.net>
compositor/main.c