diff --git a/daemon.c b/daemon.c
index 932d908bad3587b8ae7868112d587eaca775a303..24bac16668ffe4d2301719c48a22c48ec449cf7f 100644 (file)
--- a/daemon.c
+++ b/daemon.c
#include <signal.h>
#include <sys/wait.h>
#include <sys/socket.h>
#include <signal.h>
#include <sys/wait.h>
#include <sys/socket.h>
+#include <sys/time.h>
#include <netdb.h>
#include <netinet/in.h>
#include <netdb.h>
#include <netinet/in.h>
usage(daemon_usage);
}
usage(daemon_usage);
}
- if (inetd_mode)
+ if (inetd_mode) {
+ fclose(stderr); //FIXME: workaround
return execute();
return execute();
+ }
return serve(port);
}
return serve(port);
}