summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--askfirst.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/askfirst.c b/askfirst.c
index 2f948f8..9916486 100644
--- a/askfirst.c
+++ b/askfirst.c
@@ -31,10 +31,6 @@ static int redirect_output(const char *dev)
if (fd < 0)
return -1;
- close(STDIN_FILENO);
- close(STDOUT_FILENO);
- close(STDERR_FILENO);
-
dup2(fd, STDIN_FILENO);
dup2(fd, STDOUT_FILENO);
dup2(fd, STDERR_FILENO);