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:
Carsten Haitzler 2014-08-13 19:06:40 +09:00
parent 05d839e854
commit f93fb3c7f6
1 changed files with 2 additions and 1 deletions

View File

@ -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);
}
}