Revision
23912
Author
dsorresso@apple.com
Date
2009-04-27 16:25:54 -0700 (Mon, 27 Apr 2009)

Log Message

Last commit:
<rdar://problem/6828026> launchctl should open /dev/console so diagnostic messages are visible

This commit:
<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 (23911 => 23912)


--- trunk/launchd/src/launchctl.c	2009-04-27 22:58:27 UTC (rev 23911)
+++ trunk/launchd/src/launchctl.c	2009-04-27 23:25:54 UTC (rev 23912)
@@ -1193,7 +1193,7 @@
 			if (setm) {
 				chmod(sun.sun_path, sun_mode);
 			}
-			if ((st == SOCK_STREAM || st == SOCK_SEQPACKET) && listen(sfd, SOMAXCONN) == -1) {
+			if ((st == SOCK_STREAM || st == SOCK_SEQPACKET) && listen(sfd, -1) == -1) {
 				close(sfd);
 				return;
 			}