From: Ian Jackson Date: Mon, 28 Jul 2014 14:50:22 +0000 (+0100) Subject: git-cache-proxy: housekeeping: send STDERR to the syslog right away with priority... X-Git-Tag: debian/4.3.1~3 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ian/git?p=chiark-utils.git;a=commitdiff_plain;h=761b7bbea765ad42dc2f38278f3d41a042cf7c5d git-cache-proxy: housekeeping: send STDERR to the syslog right away with priority warning, not crit --- diff --git a/scripts/git-cache-proxy b/scripts/git-cache-proxy index b0c9502..9720a69 100755 --- a/scripts/git-cache-proxy +++ b/scripts/git-cache-proxy @@ -461,8 +461,10 @@ sub housekeepingcheck ($$) { } if ($dofork) { my $child = fork; - defined $child or hkfail "fork: $!"; + defined $child or fail "fork: $!"; if (!$child) { + open STDERR, "|logger -p daemon.warning -t '$us(housekeeping)'" + or die "fork: logger $!"; housekeeping(); exit 0; }