[launchd-changes] [23920] trunk/launchd/src/launchctl.c
source_changes at macosforge.org
source_changes at macosforge.org
Sat May 9 14:26:35 PDT 2009
Revision: 23920
http://trac.macosforge.org/projects/launchd/changeset/23920
Author: dsorresso at 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:
--------------
trunk/launchd/src/launchctl.c
Modified: trunk/launchd/src/launchctl.c
===================================================================
--- 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;
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/launchd-changes/attachments/20090509/9f13f1a0/attachment.html>
More information about the launchd-changes
mailing list