aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--daemon.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/daemon.c b/daemon.c
index fb3f25c48..24bac1666 100644
--- a/daemon.c
+++ b/daemon.c
@@ -353,8 +353,10 @@ int main(int argc, char **argv)
usage(daemon_usage);
}
- if (inetd_mode)
+ if (inetd_mode) {
+ fclose(stderr); //FIXME: workaround
return execute();
+ }
return serve(port);
}