Revision
23920
Author
dsorresso@apple.com
Date
2009-05-09 14:26:34 -0700 (Sat, 09 May 2009)

Log Message

More for <rdar://problem/6827830> launchd should pass -1 to listen(2)'s backlog argument to respect Server's increased backlog.

Modified Paths

Diff

Modified: trunk/launchd/src/launchctl.c (23919 => 23920)


--- trunk/launchd/src/launchctl.c	2009-05-02 03:04:04 UTC (rev 23919)
+++ trunk/launchd/src/launchctl.c	2009-05-09 21:26:34 UTC (rev 23920)
@@ -1299,7 +1299,7 @@
 				if (mgroup) {
 					do_mgroup_join(sfd, res->ai_family, res->ai_socktype, res->ai_protocol, mgroup);
 				}
-				if ((res->ai_socktype == SOCK_STREAM || res->ai_socktype == SOCK_SEQPACKET) && listen(sfd, SOMAXCONN) == -1) {
+				if ((res->ai_socktype == SOCK_STREAM || res->ai_socktype == SOCK_SEQPACKET) && listen(sfd, -1) == -1) {
 					fprintf(stderr, "listen(): %s\n", strerror(errno));
 					return;
 				}