access: Fix crash in ecore
authorJean-Philippe Andre <jp.andre@samsung.com>
Tue, 29 Aug 2017 04:33:49 +0000 (13:33 +0900)
committerJean-Philippe Andre <jp.andre@samsung.com>
Tue, 29 Aug 2017 04:33:49 +0000 (13:33 +0900)
commitfc0d2cb6a744c76f11925d9e25edac12c75574e2
tree26db178e2d3cc41101dad722d09e71e7933e6613
parent9a816931a28c674e9f12ebb5d33b953f190a272f
access: Fix crash in ecore

We use a temporary file for espeak (the accessibility text-to-speech
engine we use), and then we remove and close the file. But the fd was
not reset to -1 which meant that later on the previous fd was closed
again (this is kinda weird), but that fd was now invalid. Or rather it
was reused by ecore animator, closing the read-end of the pipe
(timer_fd_read). This caused SIGPIPE in the animator code.

Thanks strace and gdb for helping me figure out this. :)

@fix
src/modules/elementary/access_output/mod.c