ecore-pipe - check fcntl return

fix CID 1039703
This commit is contained in:
Carsten Haitzler 2014-08-27 15:17:00 +09:00
parent dab0558843
commit 4c25e710a7
1 changed files with 1 additions and 1 deletions

View File

@ -378,7 +378,7 @@ ecore_pipe_full_add(Ecore_Pipe_Cb handler,
if (!write_survive_fork)
_ecore_fd_close_on_exec(fd_write);
fcntl(p->fd_read, F_SETFL, O_NONBLOCK);
if (fcntl(p->fd_read, F_SETFL, O_NONBLOCK) < 0) ERR("can't set pipe to NONBLOCK");
p->fd_handler = ecore_main_fd_handler_add(p->fd_read,
ECORE_FD_READ,
_ecore_pipe_read,