[launchd-changes] [23805] branches/PR-5063531/launchd/src/launchctl.c
source_changes at macosforge.org
source_changes at macosforge.org
Fri Feb 13 10:58:54 PST 2009
Revision: 23805
http://trac.macosforge.org/projects/launchd/changeset/23805
Author: dsorresso at apple.com
Date: 2009-02-13 10:58:48 -0800 (Fri, 13 Feb 2009)
Log Message:
-----------
More tweaks.
Modified Paths:
--------------
branches/PR-5063531/launchd/src/launchctl.c
Modified: branches/PR-5063531/launchd/src/launchctl.c
===================================================================
--- branches/PR-5063531/launchd/src/launchctl.c 2009-02-13 04:20:18 UTC (rev 23804)
+++ branches/PR-5063531/launchd/src/launchctl.c 2009-02-13 18:58:48 UTC (rev 23805)
@@ -707,9 +707,6 @@
struct stat sb;
if( assumes(stat(file, &sb) == 0) ) {
file_changed = sb.st_mtimespec.tv_sec > g_cache_creation_time;
- if( file_changed ) {
- fprintf(stdout, "File %s has changed.\n", file);
- }
}
if( g_plist_cache && !file_changed ) {
@@ -718,7 +715,6 @@
if( plist && CFGetTypeID(plist) == CFDictionaryGetTypeID() ) {
CFRetain(plist);
} else {
- fprintf(stdout, "Invalidating cache for %s...\n", file);
add_to_cache = true;
}
} else if( g_plist_cache ) {
@@ -735,7 +731,6 @@
fprintf(stderr, "%s: no plist was returned for: %s\n", getprogname(), file);
return NULL;
} else if( add_to_cache ) {
- fprintf(stdout, "\tAdding %s to cache...\n", file);
CFDictionarySetValue(g_plist_cache, key, plist);
g_plist_cache_changes++;
}
@@ -1987,11 +1982,10 @@
uint64_t t1 = mach_absolute_time();
fprintf(stdout, "It took %llu nanoseconds to load System jobs%s.\n", t1 - t0, !g_plist_cache ? " without the cache" : "");
- syslog(LOG_NOTICE, "It took %llu nanoseconds to load System jobs%s.\n", t1 - t0, !g_plist_cache ? " without the cache" : "");
if( g_plist_cache_changes > 0 ) {
- fprintf(stdout, "Updating %u entries in launchd's plist cache.\n", g_plist_cache_changes);
WriteMyPropertyListToFile(g_plist_cache, LAUNCHD_PLIST_CACHE, true);
+ fprintf(stdout, "Updated %u entr%s in launchd's plist cache.\n", g_plist_cache_changes, g_plist_cache_changes < 2 ? "y" : "ies");
}
/*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/launchd-changes/attachments/20090213/95cc11c7/attachment.html>
More information about the launchd-changes
mailing list