check for connect failure in syslog log opening
authorRich Felker <dalias@aerifal.cx>
Fri, 9 Jan 2015 05:09:54 +0000 (00:09 -0500)
committerRich Felker <dalias@aerifal.cx>
Mon, 30 Mar 2015 05:41:33 +0000 (01:41 -0400)
commit5087ba67af3bef48ef8872e1b2ffda04623fc65b
tree01a3ecd6ddcbcc536564b65dcc0507184966c0f6
parent2c61720d971b403dfd1e500d6efdfeaf54eb411a
check for connect failure in syslog log opening

based on patch by Dima Krasner, with minor improvements for code size.
connect can fail if there is no listening syslogd, in which case a
useless socket was kept open, preventing subsequent syslog call from
attempting to connect again.

(cherry picked from commit c574321d75f035ff6d2c18dfb7e3f70db60ba7bd)
src/misc/syslog.c