raster pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=4c25e710a790ca560eb715215e7a41007e9f1735

commit 4c25e710a790ca560eb715215e7a41007e9f1735
Author: Carsten Haitzler (Rasterman) <ras...@rasterman.com>
Date:   Wed Aug 27 15:17:00 2014 +0900

    ecore-pipe - check fcntl return
    
    fix CID 1039703
---
 src/lib/ecore/ecore_pipe.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/lib/ecore/ecore_pipe.c b/src/lib/ecore/ecore_pipe.c
index 7228abf..23b80d1 100644
--- a/src/lib/ecore/ecore_pipe.c
+++ b/src/lib/ecore/ecore_pipe.c
@@ -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,

-- 


Reply via email to