weston-launcher: use CLOEXEC on fallback path
authorPekka Paalanen <ppaalanen@gmail.com>
Tue, 31 Jul 2012 10:21:06 +0000 (13:21 +0300)
committerKristian Høgsberg <krh@bitplanet.net>
Wed, 1 Aug 2012 02:19:31 +0000 (22:19 -0400)
commit27979b053f443a4b9dcf5b8ace376c75fe7c7aa5
tree6672a648f9bd75f0dd6d306a51e4112201c81af3
parent8ff691593cf6c28d7900d7a4bc464133e0b1a4bb
weston-launcher: use CLOEXEC on fallback path

If there is no weston-launcher available, launcher-util.c will fall back
to opening the given file itself. It that case it does not set the
close-on-exec flag, and will presumably leak the file descriptor to
children.

Use O_CLOEXEC on the fallback path, too.

Signed-off-by: Pekka Paalanen <ppaalanen@gmail.com>
src/launcher-util.c