summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDerek Foreman <derekf@osg.samsung.com>2015-04-30 14:28:30 -0400
committerChris Michael <cp.michael@samsung.com>2015-04-30 14:28:56 -0400
commitc5a21aaf844195ebbc6f39bce9c7f501bdedece9 (patch)
tree2bf24c77c06be2b870dc6a889a1e313fb0b60131
parent1d887a10056bdb80e5b6becdba20e0325f38712e (diff)
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
-rw-r--r--src/lib/ecore_drm/ecore_drm_launcher.c2
1 files changed, 1 insertions, 1 deletions
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)
141 { 141 {
142 fd = _ecore_drm_logind_device_open_no_pending(device); 142 fd = _ecore_drm_logind_device_open_no_pending(device);
143 if (fd < 0) return -1; 143 if (fd < 0) return -1;
144 if (_ecore_drm_launcher_device_flags_set(fd, flags) < 0) 144 if (_ecore_drm_launcher_device_flags_set(fd, flags | O_CLOEXEC) < 0)
145 { 145 {
146 close(fd); 146 close(fd);
147 _ecore_drm_logind_device_close(device); 147 _ecore_drm_logind_device_close(device);