summaryrefslogtreecommitdiff
path: root/src/lib/ecore
diff options
context:
space:
mode:
authorYeongjong Lee <yj34.lee@samsung.com>2018-09-27 13:58:08 +0900
committerHermet Park <hermetpark@gmail.com>2018-09-27 13:58:08 +0900
commit5e388350f043de82358f528c016ee592d90a3fd5 (patch)
tree0eba6b102f1dbdfb8e583cfdf994bd1c53cc642b /src/lib/ecore
parent820dcb9cd975e93271977246aaf1b1a707435851 (diff)
efl_exe: check fcntl return
Summary: Found by coverity Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D7110
Diffstat (limited to 'src/lib/ecore')
-rw-r--r--src/lib/ecore/efl_exe.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/lib/ecore/efl_exe.c b/src/lib/ecore/efl_exe.c
index 7e1e3a242a..684dc53b7e 100644
--- a/src/lib/ecore/efl_exe.c
+++ b/src/lib/ecore/efl_exe.c
@@ -428,7 +428,8 @@ _efl_exe_efl_task_run(Eo *obj EINA_UNUSED, Efl_Exe_Data *pd)
428 return NULL; 428 return NULL;
429 } 429 }
430 pd->fd.in = pipe_stdin[1]; 430 pd->fd.in = pipe_stdin[1];
431 fcntl(pd->fd.in, F_SETFL, O_NONBLOCK); 431 if (fcntl(pd->fd.in, F_SETFL, O_NONBLOCK) < 0)
432 ERR("can't set pipe to NONBLOCK");
432 eina_file_close_on_exec(pd->fd.in, EINA_TRUE); 433 eina_file_close_on_exec(pd->fd.in, EINA_TRUE);
433 pd->fd.in_handler = 434 pd->fd.in_handler =
434 efl_add(EFL_LOOP_HANDLER_CLASS, obj, 435 efl_add(EFL_LOOP_HANDLER_CLASS, obj,
@@ -446,7 +447,8 @@ _efl_exe_efl_task_run(Eo *obj EINA_UNUSED, Efl_Exe_Data *pd)
446 return NULL; 447 return NULL;
447 } 448 }
448 pd->fd.out = pipe_stdout[0]; 449 pd->fd.out = pipe_stdout[0];
449 fcntl(pd->fd.out, F_SETFL, O_NONBLOCK); 450 if (fcntl(pd->fd.out, F_SETFL, O_NONBLOCK) < 0)
451 ERR("can't set pipe to NONBLOCK");
450 eina_file_close_on_exec(pd->fd.out, EINA_TRUE); 452 eina_file_close_on_exec(pd->fd.out, EINA_TRUE);
451 pd->fd.out_handler = 453 pd->fd.out_handler =
452 efl_add(EFL_LOOP_HANDLER_CLASS, obj, 454 efl_add(EFL_LOOP_HANDLER_CLASS, obj,