Revision
23402
Author
zarzycki@apple.com
Date
2007-09-18 07:54:49 -0700 (Tue, 18 Sep 2007)

Log Message

<rdar://problem/5488633> Cancelled FUS restart cause pre-login launchd agent race

Modified Paths

Diff

Modified: trunk/launchd/src/launchd_core_logic.c (23401 => 23402)


--- trunk/launchd/src/launchd_core_logic.c	2007-09-18 01:38:21 UTC (rev 23401)
+++ trunk/launchd/src/launchd_core_logic.c	2007-09-18 14:54:49 UTC (rev 23402)
@@ -1778,6 +1778,8 @@
 	LIST_FOREACH(ji, &label_hash[hash_label(label)], label_hash_sle) {
 		if (ji->removal_pending) {
 			continue; /* 5351245 */
+		} else if (ji->mgr->shutting_down) {
+			continue; /* 5488633 */
 		}
 
 		if (strcmp(ji->label, label) == 0) {