Page MenuHomeFreeBSD

D41526.diff
No OneTemporary

D41526.diff

diff --git a/usr.sbin/syslogd/syslogd.c b/usr.sbin/syslogd/syslogd.c
--- a/usr.sbin/syslogd/syslogd.c
+++ b/usr.sbin/syslogd/syslogd.c
@@ -825,6 +825,8 @@
exit(1);
}
STAILQ_FOREACH(sl, &shead, next) {
+ if (sl->sl_recv == NULL)
+ continue;
EV_SET(&ev, sl->sl_socket, EVFILT_READ, EV_ADD, 0, 0, sl);
if (kevent(kq, &ev, 1, NULL, 0, NULL) == -1) {
warn("failed to add kevent to kqueue");
@@ -3741,9 +3743,6 @@
return (NULL);
}
dprintf("new socket fd is %d\n", s);
- if (ai->ai_socktype != SOCK_DGRAM) {
- listen(s, 5);
- }
sl_recv = socklist_recv_sock;
#if defined(INET) || defined(INET6)
if (SecureMode && (ai->ai_family == AF_INET ||

File Metadata

Mime Type
text/plain
Expires
Tue, Jan 28, 12:47 AM (9 h, 52 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
16228860
Default Alt Text
D41526.diff (668 B)

Event Timeline