Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F161695630
D41526.id126316.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
903 B
Referenced Files
None
Subscribers
None
D41526.id126316.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
@@ -3743,24 +3743,17 @@
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 ||
ai->ai_family == AF_INET6)) {
- dprintf("shutdown\n");
- /* Forbid communication in secure mode. */
- if (shutdown(s, SHUT_RD) < 0 && errno != ENOTCONN) {
- logerror("shutdown");
- if (!Debug)
- die(0);
- }
sl_recv = NULL;
} else
#endif
+ if (ai->ai_socktype != SOCK_DGRAM) {
dprintf("listening on socket\n");
+ listen(s, 5);
+ }
dprintf("sending on socket\n");
/* Copy *ai->ai_addr to the tail of struct socklist if any. */
sl = calloc(1, sizeof(*sl) + ai->ai_addrlen);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Jul 7, 12:51 AM (9 h, 29 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
34775716
Default Alt Text
D41526.id126316.diff (903 B)
Attached To
Mode
D41526: syslogd: Do not add shutdown sockets to the kqueue
Attached
Detach File
Event Timeline
Log In to Comment