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
This commit is contained in:
Derek Foreman 2015-04-30 14:28:30 -04:00 committed by Chris Michael
parent 1d887a1005
commit c5a21aaf84
1 changed files with 1 additions and 1 deletions

View File

@ -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);