summaryrefslogtreecommitdiff
path: root/src/bin/evas
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2014-08-27 15:09:14 +0900
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2014-08-27 15:09:14 +0900
commitdab0558843b47915683b862a2de0251b2939a255 (patch)
treeae830dd5aadc5237e2048b904828aa2ac44087b8 /src/bin/evas
parent03941beeedc48be7a826c752f7b49e4e6829a808 (diff)
evas cserv2 - fix fcntl return check
fixes CID 1039704
Diffstat (limited to 'src/bin/evas')
-rw-r--r--src/bin/evas/evas_cserve2_slaves.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/bin/evas/evas_cserve2_slaves.c b/src/bin/evas/evas_cserve2_slaves.c
index b64b9971b0..3958046459 100644
--- a/src/bin/evas/evas_cserve2_slaves.c
+++ b/src/bin/evas/evas_cserve2_slaves.c
@@ -568,11 +568,11 @@ cserve2_slave_thread_run(Slave_Thread_Cb thread_cb, void *thread_data, Slave_Rea
568 sb->write_fd = child[1]; 568 sb->write_fd = child[1];
569 flags = fcntl(sb->write_fd, F_GETFL); 569 flags = fcntl(sb->write_fd, F_GETFL);
570 flags |= O_NONBLOCK; 570 flags |= O_NONBLOCK;
571 fcntl(sb->write_fd, F_SETFL, flags); 571 if (fcntl(sb->write_fd, F_SETFL, flags) < 0) ERR("fcntl NONBLOCK failed");
572 sb->read_fd = parent[0]; 572 sb->read_fd = parent[0];
573 flags = fcntl(sb->read_fd, F_GETFL); 573 flags = fcntl(sb->read_fd, F_GETFL);
574 flags |= O_NONBLOCK; 574 flags |= O_NONBLOCK;
575 fcntl(sb->read_fd, F_SETFL, flags); 575 if (fcntl(sb->read_fd, F_SETFL, flags) < 0) ERR("fcntl NONBLOCK failed");
576 sb->read_cb = read_cb; 576 sb->read_cb = read_cb;
577 sb->dead_cb = dead_cb; 577 sb->dead_cb = dead_cb;
578 sb->data = data; 578 sb->data = data;