eina debug - check write return value and complain

makes coverity happy - CID 1377524
This commit is contained in:
Carsten Haitzler 2017-09-29 11:31:17 +09:00
parent d4fd5b0287
commit b7d4372221
1 changed files with 2 additions and 1 deletions

View File

@ -200,7 +200,8 @@ _eina_debug_timer_shutdown(void)
{
char c = '\0';
_exit_required = EINA_TRUE;
write(pipeToThread[1], &c, 1);
if (write(pipeToThread[1], &c, 1) != 1)
e_debug("Eina debug timer shutdown write failed!");
eina_spinlock_free(&_lock);
return EINA_TRUE;
}