svn commit: r246403 - stable/8/usr.sbin/inetd

Andrey Zonov zont at FreeBSD.org
Wed Feb 6 13:17:42 UTC 2013


Author: zont
Date: Wed Feb  6 13:17:41 2013
New Revision: 246403
URL: http://svnweb.freebsd.org/changeset/base/246403

Log:
  MFC r245696:
  - Force inetd to have listen queue size to be set to the value of
    kern.ipc.somaxconn instead of hardcoded value 64.

Modified:
  stable/8/usr.sbin/inetd/inetd.c
Directory Properties:
  stable/8/usr.sbin/inetd/   (props changed)

Modified: stable/8/usr.sbin/inetd/inetd.c
==============================================================================
--- stable/8/usr.sbin/inetd/inetd.c	Wed Feb  6 13:16:43 2013	(r246402)
+++ stable/8/usr.sbin/inetd/inetd.c	Wed Feb  6 13:17:41 2013	(r246403)
@@ -1387,7 +1387,7 @@ setsockopt(fd, SOL_SOCKET, opt, (char *)
                 }
         }
 	if (sep->se_socktype == SOCK_STREAM)
-		listen(sep->se_fd, 64);
+		listen(sep->se_fd, -1);
 	enable(sep);
 	if (debug) {
 		warnx("registered %s on %d",


More information about the svn-src-stable-8 mailing list