aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBoris Faure <billiob@gmail.com>2016-12-04 23:17:56 +0100
committerBoris Faure <billiob@gmail.com>2016-12-04 23:17:56 +0100
commit86f27f0474e9147015c12fd0ffd07efcf21a69a9 (patch)
treec4a84e9e9fa75d64ddfb61ff49d55e2a2a704a93
parentimprove error message (diff)
downloadterminology-86f27f0474e9147015c12fd0ffd07efcf21a69a9.tar.gz
termpty: remove useless code
-rw-r--r--src/bin/termpty.c5
1 files changed, 0 insertions, 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);