[launchd-changes] [23930] trunk/launchd/src/launchctl.c
source_changes at macosforge.org
source_changes at macosforge.org
Thu Jul 2 16:36:18 PDT 2009
Revision: 23930
http://trac.macosforge.org/projects/launchd/changeset/23930
Author: dsorresso at 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;
}
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/launchd-changes/attachments/20090702/9b56f796/attachment-0001.html>
More information about the launchd-changes
mailing list