From c5a21aaf844195ebbc6f39bce9c7f501bdedece9 Mon Sep 17 00:00:00 2001 From: Derek Foreman Date: Thu, 30 Apr 2015 14:28:30 -0400 Subject: [PATCH] ecore-drm: append O_CLOEXEC always Summary: Seems libinput wasn't bothering to set this so all child processes get their hands on input devices @fix Subscribers: cedric Differential Revision: https://phab.enlightenment.org/D2455 --- src/lib/ecore_drm/ecore_drm_launcher.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/ecore_drm/ecore_drm_launcher.c b/src/lib/ecore_drm/ecore_drm_launcher.c index ae28be0e8d..35b8ffcd33 100644 --- a/src/lib/ecore_drm/ecore_drm_launcher.c +++ b/src/lib/ecore_drm/ecore_drm_launcher.c @@ -141,7 +141,7 @@ _ecore_drm_launcher_device_open_no_pending(const char *device, int flags) { fd = _ecore_drm_logind_device_open_no_pending(device); if (fd < 0) return -1; - if (_ecore_drm_launcher_device_flags_set(fd, flags) < 0) + if (_ecore_drm_launcher_device_flags_set(fd, flags | O_CLOEXEC) < 0) { close(fd); _ecore_drm_logind_device_close(device); -- 2.34.1