summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2019-12-11 15:27:26 +0000
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2019-12-11 15:28:12 +0000
commitcf9b1fda05fdf042755078fa0a7822c388c8c89a (patch)
treed9dafaa5a4ea1692d67198bd1f862f80a69d82de
parent430f1c79caeb7e42256c3152c624dcb9493d2c98 (diff)
ecore exe - remove useless fd closing before _exit()
we call _exit() right after closing some fd's - don't bother. they might already be closed anyway and they will all be closed at exit either way...
-rw-r--r--src/lib/ecore/ecore_exe_posix.c13
1 files changed, 0 insertions, 13 deletions
diff --git a/src/lib/ecore/ecore_exe_posix.c b/src/lib/ecore/ecore_exe_posix.c
index 4a9b7a3..44d9c73 100644
--- a/src/lib/ecore/ecore_exe_posix.c
+++ b/src/lib/ecore/ecore_exe_posix.c
@@ -372,19 +372,6 @@ _impl_ecore_exe_efl_object_finalize(Eo *obj, Ecore_Exe_Data *exe)
372 _ecore_exe_exec_it(exe_cmd, flags); /* no return */ 372 _ecore_exe_exec_it(exe_cmd, flags); /* no return */
373 } 373 }
374 } 374 }
375
376 /* Something went 'orribly wrong. */
377 vfork_exec_errno = errno;
378
379 /* Close the pipes. */
380 if (flags & ECORE_EXE_PIPE_ERROR)
381 E_NO_ERRNO(result, close(errorPipe[1]), ok);
382 if (flags & ECORE_EXE_PIPE_READ)
383 E_NO_ERRNO(result, close(readPipe[1]), ok);
384 if (flags & ECORE_EXE_PIPE_WRITE)
385 E_NO_ERRNO(result, close(writePipe[0]), ok);
386 E_NO_ERRNO(result, close(statusPipe[1]), ok);
387
388 _exit(-1); 375 _exit(-1);
389 } 376 }
390 else /* parent */ 377 else /* parent */