summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/lib/elput/elput_evdev.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/src/lib/elput/elput_evdev.c b/src/lib/elput/elput_evdev.c
index e29600ce50..44999eb7c5 100644
--- a/src/lib/elput/elput_evdev.c
+++ b/src/lib/elput/elput_evdev.c
@@ -72,14 +72,7 @@ _keyboard_fd_get(off_t size)
72 72
73 if (fd < 0) return -1; 73 if (fd < 0) return -1;
74 74
75 flags = fcntl(fd, F_GETFD); 75 if (!eina_file_close_on_exec(fd, EINA_TRUE))
76 if (flags < 0)
77 {
78 close(fd);
79 return -1;
80 }
81
82 if (fcntl(fd, F_SETFD, (flags | FD_CLOEXEC)) == -1)
83 { 76 {
84 close(fd); 77 close(fd);
85 return -1; 78 return -1;