Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F108637047
D41526.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
668 B
Referenced Files
None
Subscribers
None
D41526.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D41526: syslogd: Do not add shutdown sockets to the kqueue
Attached
Detach File
Event Timeline
Log In to Comment