summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--honeypot.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/honeypot.c b/honeypot.c
index 326792a..edadc2f 100644
--- a/honeypot.c
+++ b/honeypot.c
@@ -521,6 +521,8 @@ int main(int argc, char *argv[])
{0, 0, 0, 0}
};
+ close(STDIN_FILENO);
+
while ((option = getopt_long(argc, argv, "dfl:o:p:h", long_options, &option_index)) != -1) {
switch (option) {
case 'd':