[launchd-changes] [23429] trunk/launchd/src/StartupItems.c
source_changes at macosforge.org
source_changes at macosforge.org
Tue Sep 25 10:15:33 PDT 2007
Revision: 23429
http://trac.macosforge.org/projects/launchd/changeset/23429
Author: zarzycki at apple.com
Date: 2007-09-25 10:15:32 -0700 (Tue, 25 Sep 2007)
Log Message:
-----------
<rdar://problem/5503536> just installed startupitem will not start
Modified Paths:
--------------
trunk/launchd/src/StartupItems.c
Modified: trunk/launchd/src/StartupItems.c
===================================================================
--- trunk/launchd/src/StartupItems.c 2007-09-23 18:44:41 UTC (rev 23428)
+++ trunk/launchd/src/StartupItems.c 2007-09-25 17:15:32 UTC (rev 23429)
@@ -239,7 +239,11 @@
syslog(LOG_ERR, "lstat(\"%s\"): %m", aPath);
return false;
}
- if (aStatBuf.st_ctimespec.tv_sec > boot_time.tv_sec) {
+ /*
+ * We check the boot time because of 5409386.
+ * We ignore the boot time if PPID != 1 because of 5503536.
+ */
+ if ((aStatBuf.st_ctimespec.tv_sec > boot_time.tv_sec) && (getppid() == 1)) {
syslog(LOG_WARNING, "\"%s\" failed sanity check: path was created after boot up", aPath);
return false;
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/launchd-changes/attachments/20070925/6a045ccc/attachment.html
More information about the launchd-changes
mailing list