chiark / gitweb /
git-cache-proxy: housekeeping: send STDERR to the syslog right away with priority...
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Mon, 28 Jul 2014 14:50:22 +0000 (15:50 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Mon, 28 Jul 2014 14:50:29 +0000 (15:50 +0100)
scripts/git-cache-proxy

index b0c9502..9720a69 100755 (executable)
@@ -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;
        }