Revision: 23372 http://trac.macosforge.org/projects/launchd/changeset/23372 Author: zarzycki@apple.com Date: 2007-09-11 16:49:02 -0700 (Tue, 11 Sep 2007) Log Message: ----------- Comments are good. Modified Paths: -------------- trunk/launchd/src/launchd_core_logic.c Modified: trunk/launchd/src/launchd_core_logic.c =================================================================== --- trunk/launchd/src/launchd_core_logic.c 2007-09-11 23:44:27 UTC (rev 23371) +++ trunk/launchd/src/launchd_core_logic.c 2007-09-11 23:49:02 UTC (rev 23372) @@ -2305,6 +2305,11 @@ return; } + /* + * Some users adjust the wall-clock and then expect software to not notice. + * Therefore, launchd must use an absolute clock instead of gettimeofday() + * or time() wherever possible. + */ td = (tnow - j->start_time) * tbi.numer / tbi.denom; td /= NSEC_PER_SEC;