<rdar://problem/5488633> Cancelled FUS restart cause pre-login launchd agent race
--- 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) {