summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 81fa145)
raw | patch | inline | side by side (parent: 81fa145)
author | Johannes Sixt <j.sixt@viscovery.net> | |
Mon, 25 Feb 2008 13:25:20 +0000 (14:25 +0100) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Wed, 27 Feb 2008 22:47:36 +0000 (14:47 -0800) |
There were a number of die() calls before the syslog was opened; hence,
these error messages would have been sent to /dev/null in detached mode.
Now we install the daemon-specific die routine before any error message is
generated so that these messages go to the syslog.
Signed-off-by: Johannes Sixt <johannes.sixt@telecom.at>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
these error messages would have been sent to /dev/null in detached mode.
Now we install the daemon-specific die routine before any error message is
generated so that these messages go to the syslog.
Signed-off-by: Johannes Sixt <johannes.sixt@telecom.at>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
daemon.c | patch | blob | history |
diff --git a/daemon.c b/daemon.c
index 41a60af624ae661e9bd96a935ecdc855625b669e..dd0177f48d3192d3006394584e335ae1beba5db4 100644 (file)
--- a/daemon.c
+++ b/daemon.c
usage(daemon_usage);
}
+ if (log_syslog) {
+ openlog("git-daemon", 0, LOG_DAEMON);
+ set_die_routine(daemon_die);
+ }
+
if (inetd_mode && (group_name || user_name))
die("--user and --group are incompatible with --inetd");
}
}
- if (log_syslog) {
- openlog("git-daemon", 0, LOG_DAEMON);
- set_die_routine(daemon_die);
- }
-
if (strict_paths && (!ok_paths || !*ok_paths))
die("option --strict-paths requires a whitelist");