forked from enlightenment/efl
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:
parent
1d887a1005
commit
c5a21aaf84
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue