Revision: 23102 http://trac.macosforge.org/projects/launchd/changeset/23102 Author: zarzycki@apple.com Date: 2007-02-23 08:35:27 -0800 (Fri, 23 Feb 2007) Log Message: ----------- <rdar://problem/4964668> [Kernel Extensions] Regression on load order Modified Paths: -------------- trunk/launchd/src/Makefile.am trunk/launchd/src/Makefile.in trunk/launchd/src/SystemStarter.c Modified: trunk/launchd/src/Makefile.am =================================================================== --- trunk/launchd/src/Makefile.am 2007-02-23 00:43:05 UTC (rev 23101) +++ trunk/launchd/src/Makefile.am 2007-02-23 16:35:27 UTC (rev 23102) @@ -40,7 +40,7 @@ launchctl_LDFLAGS = -framework CoreFoundation -framework IOKit -weak_library /usr/lib/libedit.dylib SystemStarter_CFLAGS = -mdynamic-no-pic $(AM_CFLAGS) -SystemStarter_LDFLAGS = -framework CoreFoundation +SystemStarter_LDFLAGS = -framework CoreFoundation -framework IOKit SystemStarter_SOURCES = StartupItems.c IPC.c SystemStarter.c launchd_CFLAGS = -mdynamic-no-pic $(AM_CFLAGS) -Wno-unused-parameter Modified: trunk/launchd/src/Makefile.in =================================================================== --- trunk/launchd/src/Makefile.in 2007-02-23 00:43:05 UTC (rev 23101) +++ trunk/launchd/src/Makefile.in 2007-02-23 16:35:27 UTC (rev 23102) @@ -239,7 +239,7 @@ @LIBS_ONLY_FALSE@launchctl_CFLAGS = $(AM_CFLAGS) -I/System/Library/Frameworks/System.framework/PrivateHeaders @LIBS_ONLY_FALSE@launchctl_LDFLAGS = -framework CoreFoundation -framework IOKit -weak_library /usr/lib/libedit.dylib @LIBS_ONLY_FALSE@SystemStarter_CFLAGS = -mdynamic-no-pic $(AM_CFLAGS) -@LIBS_ONLY_FALSE@SystemStarter_LDFLAGS = -framework CoreFoundation +@LIBS_ONLY_FALSE@SystemStarter_LDFLAGS = -framework CoreFoundation -framework IOKit @LIBS_ONLY_FALSE@SystemStarter_SOURCES = StartupItems.c IPC.c SystemStarter.c @LIBS_ONLY_FALSE@launchd_CFLAGS = -mdynamic-no-pic $(AM_CFLAGS) -Wno-unused-parameter @LIBS_ONLY_FALSE@launchd_LDFLAGS = -lbsm Modified: trunk/launchd/src/SystemStarter.c =================================================================== --- trunk/launchd/src/SystemStarter.c 2007-02-23 00:43:05 UTC (rev 23101) +++ trunk/launchd/src/SystemStarter.c 2007-02-23 16:35:27 UTC (rev 23102) @@ -22,6 +22,7 @@ * @APPLE_APACHE_LICENSE_HEADER_END@ **/ +#include <IOKit/IOKitLib.h> #include <sys/types.h> #include <sys/stat.h> #include <paths.h> @@ -115,6 +116,8 @@ } else if (!gDebugFlag && anAction != kActionStop) { const char *ipw_cmd[] = { "/usr/sbin/ipconfig", "waitall", NULL }; const char *adm_cmd[] = { "/sbin/autodiskmount", "-va", NULL }; + mach_timespec_t w = { 600, 0 }; + kern_return_t kr; /* Too many old StartupItems had implicit dependancies on * "Network" via other StartupItems that are now no-ops. @@ -123,6 +126,11 @@ * so we'll stall here to deal with this legacy dependancy * problem. */ + + if ((kr = IOKitWaitQuiet(kIOMasterPortDefault, &w)) != kIOReturnSuccess) { + syslog(LOG_NOTICE, "IOKitWaitQuiet: %d\n", kr); + } + fwexec(ipw_cmd, true); fwexec(adm_cmd, true); }
participants (1)
-
source_changes@macosforge.org