raster pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=03941beeedc48be7a826c752f7b49e4e6829a808

commit 03941beeedc48be7a826c752f7b49e4e6829a808
Author: Carsten Haitzler (Rasterman) <[email protected]>
Date:   Wed Aug 27 15:06:41 2014 +0900

    evas cserve2 - fix fcntl return check
    
    fix CID 1039705
---
 src/bin/evas/evas_cserve2_slaves.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/bin/evas/evas_cserve2_slaves.c 
b/src/bin/evas/evas_cserve2_slaves.c
index b2d7588..b64b997 100644
--- a/src/bin/evas/evas_cserve2_slaves.c
+++ b/src/bin/evas/evas_cserve2_slaves.c
@@ -436,11 +436,11 @@ _cserve2_slave_proc_run(const char *exe, Slave_Read_Cb 
read_cb, Slave_Dead_Cb de
    sb->write_fd = child[1];
    flags = fcntl(sb->write_fd, F_GETFL);
    flags |= O_NONBLOCK;
-   fcntl(sb->write_fd, F_SETFL, flags);
+   if (fcntl(sb->write_fd, F_SETFL, flags) < 0) ERR("fcntl NONBLOCK failed");
    sb->read_fd = parent[0];
    flags = fcntl(sb->read_fd, F_GETFL);
    flags |= O_NONBLOCK;
-   fcntl(sb->read_fd, F_SETFL, flags);
+   if (fcntl(sb->read_fd, F_SETFL, flags) < 0) ERR("fcntl NONBLOCK failed");
    sb->read_cb = read_cb;
    sb->dead_cb = dead_cb;
    sb->data = data;

-- 


Reply via email to