Revision: 23930 http://trac.macosforge.org/projects/launchd/changeset/23930 Author: dsorresso@apple.com Date: 2009-07-02 16:36:17 -0700 (Thu, 02 Jul 2009) Log Message: ----------- Startup debugging dependent on same file as shutdown debugging. Modified Paths: -------------- trunk/launchd/src/launchctl.c Modified: trunk/launchd/src/launchctl.c =================================================================== --- trunk/launchd/src/launchctl.c 2009-07-02 23:32:19 UTC (rev 23929) +++ trunk/launchd/src/launchctl.c 2009-07-02 23:36:17 UTC (rev 23930) @@ -4056,7 +4056,7 @@ char bootargs[128]; size_t len = sizeof(bootargs) - 1; int r = sysctlbyname("kern.bootargs", bootargs, &len, NULL, 0); - if( r == 0 && strnstr(bootargs, "-v", len) != NULL ) { + if( r == 0 && stat("/var/db/.launchd_shutdown_debugging", &sb) == 0 && strnstr(bootargs, "-v", len) != NULL ) { g_verbose_boot = true; } }