]> asedeno.scripts.mit.edu Git - git.git/commit
git-daemon: use LOG_PID, simplify logging code
authorStephen R. van den Berg <srb@cuci.nl>
Thu, 14 Aug 2008 18:02:20 +0000 (20:02 +0200)
committerJunio C Hamano <gitster@pobox.com>
Mon, 18 Aug 2008 00:43:53 +0000 (17:43 -0700)
commit6a992e9e1da08af3e36ab90d5f5b7ee8077630ce
tree9d72d27defac074d74e7f8bbdc46a4d3cda91353
parentdf0daf8ac0fce4bb98d5aff9295535a1606d2fad
git-daemon: use LOG_PID, simplify logging code

Make git-daemon use LOG_PID like most daemons, instead of prepending the
pid to the message ourselves, when using syslog(3).

Simplify the logging code by setting stderr to line buffered, instead of
building a single string and writing it out with a single write(2).

Give an extra log message at the daemon start-up.

Signed-off-by: Stephen R. van den Berg <srb@cuci.nl>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
daemon.c