summaryrefslogtreecommitdiff
path: root/src/bin/evas/evas_cserve2_slaves.c
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2014-08-27 15:06:41 +0900
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2014-08-27 15:06:41 +0900
commit03941beeedc48be7a826c752f7b49e4e6829a808 (patch)
treeb2475137a6ff46f1ee6f5135f7e95f19e5009a23 /src/bin/evas/evas_cserve2_slaves.c
parentc71d2c7d83b38eaa7fb85893efda8c715ae4de55 (diff)
evas cserve2 - fix fcntl return check
fix CID 1039705
Diffstat (limited to 'src/bin/evas/evas_cserve2_slaves.c')
-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 b2d7588c26..b64b9971b0 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
436 sb->write_fd = child[1]; 436 sb->write_fd = child[1];
437 flags = fcntl(sb->write_fd, F_GETFL); 437 flags = fcntl(sb->write_fd, F_GETFL);
438 flags |= O_NONBLOCK; 438 flags |= O_NONBLOCK;
439 fcntl(sb->write_fd, F_SETFL, flags); 439 if (fcntl(sb->write_fd, F_SETFL, flags) < 0) ERR("fcntl NONBLOCK failed");
440 sb->read_fd = parent[0]; 440 sb->read_fd = parent[0];
441 flags = fcntl(sb->read_fd, F_GETFL); 441 flags = fcntl(sb->read_fd, F_GETFL);
442 flags |= O_NONBLOCK; 442 flags |= O_NONBLOCK;
443 fcntl(sb->read_fd, F_SETFL, flags); 443 if (fcntl(sb->read_fd, F_SETFL, flags) < 0) ERR("fcntl NONBLOCK failed");
444 sb->read_cb = read_cb; 444 sb->read_cb = read_cb;
445 sb->dead_cb = dead_cb; 445 sb->dead_cb = dead_cb;
446 sb->data = data; 446 sb->data = data;