diff options
author | Derek Foreman <derekf@osg.samsung.com> | 2017-02-09 08:58:03 -0600 |
---|---|---|
committer | Derek Foreman <derekf@osg.samsung.com> | 2017-02-09 09:17:38 -0600 |
commit | 2800038ee212de4588471bca5d0773599b93d470 (patch) | |
tree | 0e197be8f33085c7a6d130ec385db3ab3e180bc6 /src/lib/elput | |
parent | 9540e96107f7f6f759c3a7ed51d90a8883fc2310 (diff) |
Revert "vpath usage - simplify to bare minimum to make gustavo happy"
This reverts commit 2037474dc0fd2b360452f2a15abcbe533b57ca37.
This causes the wayland_shm engine to seg fault immediately at
startup when attempting to create shm buffers.
Please make sure when committing changes to the wayland_shm engine to
test on intel, exynos, and at least one platform without dmabuf
capabilities - or using the EVAS_WAYLAND_SHM_DISABLE_DMABUF env var
to disable dmabuf on intel or exynos.
Anyone without the time or hardware to fully test changes to wayland_shm
can submit a patch to phabricator and assign it to me so I can fully
test it before landing.
Diffstat (limited to 'src/lib/elput')
-rw-r--r-- | src/lib/elput/elput_evdev.c | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/src/lib/elput/elput_evdev.c b/src/lib/elput/elput_evdev.c index e29600ce50..8067f24783 100644 --- a/src/lib/elput/elput_evdev.c +++ b/src/lib/elput/elput_evdev.c | |||
@@ -60,16 +60,21 @@ _keyboard_modifiers_update(Elput_Keyboard *kbd, Elput_Seat *seat) | |||
60 | static int | 60 | static int |
61 | _keyboard_fd_get(off_t size) | 61 | _keyboard_fd_get(off_t size) |
62 | { | 62 | { |
63 | const char *path; | ||
63 | Eina_Tmpstr *fullname; | 64 | Eina_Tmpstr *fullname; |
64 | long flags; | 65 | long flags; |
65 | int fd = 0; | 66 | int fd = 0; |
67 | char tmp[PATH_MAX]; | ||
66 | Efl_Vpath_File *file_obj; | 68 | Efl_Vpath_File *file_obj; |
67 | 69 | ||
68 | file_obj = efl_vpath_manager_fetch(EFL_VPATH_MANAGER_CLASS, | 70 | file_obj = efl_vpath_manager_fetch(EFL_VPATH_MANAGER_CLASS, "(:run:)/"); |
69 | "(:run:)/elput-keymap-XXXXXX"); | 71 | efl_vpath_file_do(file_obj); |
70 | fd = eina_file_mkstemp(efl_vpath_file_result_get(file_obj), &fullname); | 72 | efl_vpath_file_wait(file_obj); |
73 | path = efl_vpath_file_result_get(file_obj); | ||
74 | snprintf(tmp, sizeof(tmp), "%s/elput-keymap-XXXXXX", path); | ||
71 | efl_del(file_obj); | 75 | efl_del(file_obj); |
72 | 76 | ||
77 | fd = eina_file_mkstemp(tmp, &fullname); | ||
73 | if (fd < 0) return -1; | 78 | if (fd < 0) return -1; |
74 | 79 | ||
75 | flags = fcntl(fd, F_GETFD); | 80 | flags = fcntl(fd, F_GETFD); |