forked from enlightenment/efl
eina thread queue - check write return
this addresses CID 1226191. this should never have an error as the fd should always be valid as long as needed.
This commit is contained in:
parent
05d839e854
commit
f93fb3c7f6
|
@ -415,7 +415,8 @@ eina_thread_queue_send_done(Eina_Thread_Queue *thq, void *allocref)
|
|||
if (thq->fd >= 0)
|
||||
{
|
||||
char dummy = 0;
|
||||
write(thq->fd, &dummy, 1);
|
||||
if (write(thq->fd, &dummy, 1) != 1)
|
||||
fprintf(stderr, "Eina Threadqueue write to fd %i failed\n", thq->fd);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue