From 4c25e710a790ca560eb715215e7a41007e9f1735 Mon Sep 17 00:00:00 2001 From: "Carsten Haitzler (Rasterman)" Date: Wed, 27 Aug 2014 15:17:00 +0900 Subject: [PATCH] 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 7228abf958..23b80d15bd 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, -- 2.34.1