Revision
23383
Author
zarzycki@apple.com
Date
2007-09-13 16:43:46 -0700 (Thu, 13 Sep 2007)

Log Message

<rdar://problem/5480998> Performance regression due to 5418922

Modified Paths

Diff

Modified: trunk/launchd/src/launchd_core_logic.c (23382 => 23383)


--- trunk/launchd/src/launchd_core_logic.c	2007-09-13 22:42:46 UTC (rev 23382)
+++ trunk/launchd/src/launchd_core_logic.c	2007-09-13 23:43:46 UTC (rev 23383)
@@ -2341,7 +2341,7 @@
 	td = (tnow - j->start_time) * tbi.numer / tbi.denom;
 	td /= NSEC_PER_SEC;
 
-	if (td < j->min_run_time && !j->legacy_mach_job && !j->inetcompat) {
+	if (j->start_time && (td < j->min_run_time) && !j->legacy_mach_job && !j->inetcompat) {
 		time_t respawn_delta = j->min_run_time - td;
 
 		/*