ecore pipe - fix checking return of read for pipes in new code

This commit is contained in:
Carsten Haitzler 2017-04-18 14:30:22 +09:00
parent 352174784e
commit 3e494a0a21
1 changed files with 3 additions and 1 deletions

View File

@ -608,7 +608,9 @@ _ecore_pipe_wait(Ecore_Pipe *p,
if ((fd_timer_found) && (p->timerfd != PIPE_FD_INVALID))
{
pipe_read(p->timerfd, &timerfdbuf, sizeof(timerfdbuf));
if (pipe_read(p->timerfd, &timerfdbuf, sizeof(timerfdbuf))
< sizeof(timerfdbuf))
WRN("Could not read timerfd data");
_ecore_pipe_unhandle(p);
break;
}