From 198b7760d8eae90f33959e2ae777253df905ae15 Mon Sep 17 00:00:00 2001 From: Markus Armbruster Date: Sat, 18 Aug 2007 09:24:05 +0000 Subject: [PATCH] (exec_fd): Useless junk inherited all the way from BSD Empire 1.1. Remove. --- src/client/servcmd.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/client/servcmd.c b/src/client/servcmd.c index e262ea36..34cc352f 100644 --- a/src/client/servcmd.c +++ b/src/client/servcmd.c @@ -58,7 +58,6 @@ static int nbtu; static int nmin; static FILE *redir_fp; static FILE *pipe_fp; -static int exec_fd; static void prompt(FILE *auxfi); static void doredir(char *p); @@ -128,7 +127,7 @@ servercmd(struct ioqueue *ioq, FILE *auxfi) if (*p) { p[strlen(p) - 1] = '\0'; sprintf(num_teles, "(%s) ", p + 1); - if (!redir_fp && !pipe_fp && !exec_fd) { + if (!redir_fp && !pipe_fp) { putchar('\07'); prompt(NULL); } @@ -154,11 +153,6 @@ prompt(FILE *auxfi) } else if (pipe_fp) { (void)pclose(pipe_fp); pipe_fp = NULL; - } else if (exec_fd > 0) { - close(exec_fd); - close(0); - exec_fd = -1; - open("/dev/tty", O_RDONLY, 0); } } if (mode == C_PROMPT)