summaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/main.c b/src/main.c
index 95dc9fe3..36f29481 100644
--- a/src/main.c
+++ b/src/main.c
@@ -1403,6 +1403,8 @@ redirect_standard_io_to_device (const char *device)
dup2 (fd, STDOUT_FILENO);
dup2 (fd, STDERR_FILENO);
+ close (fd);
+
return true;
}