OSDN Git Service

* syslog.cc: Include sys/un.h instead of sys/socket.h.
authorcorinna <corinna>
Mon, 2 Jan 2006 13:05:56 +0000 (13:05 +0000)
committercorinna <corinna>
Mon, 2 Jan 2006 13:05:56 +0000 (13:05 +0000)
commit386315f8e88c072802522fcdb4d31d312e9c21f1
treef5c5a6643919c19501bd525925794bdea1e105d0
parent6a11b4a091e8f54182723efcd434b05a224010cf
* syslog.cc: Include sys/un.h instead of sys/socket.h.
(syslogd_inited): Convert to enum type noting the exact result of
trying to connect to syslog daemon.  Use this way throughout.
(connect_syslogd): New static function taking over the task to
connect to syslog socket.  Use correct struct sockaddr_un instead of
struct sockaddr.
(try_connect_syslogd): Call connect_syslogd.  If write fails on
connection oriented socket, try to reconnect to syslog socket and
try to write again.
winsup/cygwin/ChangeLog
winsup/cygwin/syslog.cc