From 56e94017e2a3db256841e61a608bd10508a5398f Mon Sep 17 00:00:00 2001 From: Eric Andersen Date: Wed, 10 Jul 2002 04:38:37 +0000 Subject: Tobias Anderberg noticed that we were opening the socket() as SOCK_STREAM instead of using SOCK_DGRAM like we should have done. --- libc/misc/syslog/syslog.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libc/misc/syslog') diff --git a/libc/misc/syslog/syslog.c b/libc/misc/syslog/syslog.c index c4333b9b5..531438b54 100644 --- a/libc/misc/syslog/syslog.c +++ b/libc/misc/syslog/syslog.c @@ -276,7 +276,7 @@ openlog( const char *ident, int logstat, int logfac ) (void)strncpy(SyslogAddr.sa_data, _PATH_LOG, sizeof(SyslogAddr.sa_data)); if (LogStat & LOG_NDELAY) { - if ((LogFile = socket(AF_UNIX, SOCK_STREAM, 0)) == -1){ + if ((LogFile = socket(AF_UNIX, SOCK_DGRAM, 0)) == -1){ UNLOCK; return; } -- cgit v1.2.3