]> git.ipfire.org Git - thirdparty/git.git/commit - daemon.c
daemon.c: fix condition for redirecting stderr
authorLucas Werkmeister <mail@lucaswerkmeister.de>
Tue, 3 Apr 2018 22:13:07 +0000 (00:13 +0200)
committerJunio C Hamano <gitster@pobox.com>
Mon, 9 Apr 2018 02:25:48 +0000 (11:25 +0900)
commite67d906d735166f2068f1e4cc393220483a97f30
tree426596976e6283f4137f106ba68d893eb712dd6a
parent0c591cacba00a36af797fa3b6c4a4f12d342be86
daemon.c: fix condition for redirecting stderr

Since the --log-destination option was added in 0c591cacb ("daemon: add
--log-destination=(stderr|syslog|none)", 2018-02-04) with the explicit
goal of allowing logging to stderr when running in inetd mode, we should
not always redirect stderr to /dev/null in inetd mode, but rather only
when stderr is not being used for logging.

Signed-off-by: Lucas Werkmeister <mail@lucaswerkmeister.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
daemon.c