daemon: ignore ENOTSOCK from setsockopt
authorEric Wong <e@80x24.org>
Mon, 18 Jul 2016 04:59:11 +0000 (04:59 +0000)
committerJunio C Hamano <gitster@pobox.com>
Mon, 18 Jul 2016 18:09:52 +0000 (11:09 -0700)
In inetd mode, we are not guaranteed stdin or stdout is a
socket; callers could filter the data through a pipe
or be testing with regular files.

This prevents t5802 from polluting syslog.

Signed-off-by: Eric Wong <e@80x24.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
No differences found