raster pushed a commit to branch master. http://git.enlightenment.org/core/efl.git/commit/?id=dab0558843b47915683b862a2de0251b2939a255
commit dab0558843b47915683b862a2de0251b2939a255 Author: Carsten Haitzler (Rasterman) <[email protected]> Date: Wed Aug 27 15:09:14 2014 +0900 evas cserv2 - fix fcntl return check fixes CID 1039704 --- 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 b64b997..3958046 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 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; --
