billiob pushed a commit to branch master. http://git.enlightenment.org/apps/terminology.git/commit/?id=86f27f0474e9147015c12fd0ffd07efcf21a69a9
commit 86f27f0474e9147015c12fd0ffd07efcf21a69a9 Author: Boris Faure <bill...@gmail.com> Date: Sun Dec 4 23:17:56 2016 +0100 termpty: remove useless code --- src/bin/termpty.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/bin/termpty.c b/src/bin/termpty.c index c8d0e06..9bd7159 100644 --- a/src/bin/termpty.c +++ b/src/bin/termpty.c @@ -475,7 +475,6 @@ termpty_new(const char *cmd, Eina_Bool login_shell, const char *cd, } if (!ty->pid) { - int i; char buf[256]; if (cd) @@ -493,10 +492,6 @@ termpty_new(const char *cmd, Eina_Bool login_shell, const char *cd, DBG("exec %s %s %s %s", NC(0), NC(1), NC(2), NC(3)); #undef NC - for (i = 0; i < 100; i++) - { - if (i != ty->slavefd) close(i); - } setsid(); dup2(ty->slavefd, 0); --