Give python a chance to find "backported" modules
[git.git] / daemon.c
index 0c6182f..e184752 100644 (file)
--- a/daemon.c
+++ b/daemon.c
@@ -1,5 +1,3 @@
-#include "cache.h"
-#include "pkt-line.h"
 #include <signal.h>
 #include <sys/wait.h>
 #include <sys/socket.h>
@@ -9,6 +7,8 @@
 #include <netinet/in.h>
 #include <arpa/inet.h>
 #include <syslog.h>
+#include "pkt-line.h"
+#include "cache.h"
 
 static int log_syslog;
 static int verbose;
@@ -628,8 +628,9 @@ int main(int argc, char **argv)
 
        if (inetd_mode) {
                fclose(stderr); //FIXME: workaround
+               log_syslog = 1;
                return execute();
-       } else {
-               return serve(port);
        }
+
+       return serve(port);
 }