[launchd-changes] [23203] trunk/launchd/src/launchd_core_logic.c

source_changes at macosforge.org source_changes at macosforge.org
Wed Apr 4 13:05:30 PDT 2007


Revision: 23203
          http://trac.macosforge.org/projects/launchd/changeset/23203
Author:   zarzycki at apple.com
Date:     2007-04-04 13:05:30 -0700 (Wed, 04 Apr 2007)

Log Message:
-----------
Small bug fixes.

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-04-04 19:10:17 UTC (rev 23202)
+++ trunk/launchd/src/launchd_core_logic.c	2007-04-04 20:05:30 UTC (rev 23203)
@@ -1811,7 +1811,7 @@
 
 	if (j->hopefully_exits_first) {
 		j->mgr->hopefully_first_cnt--;
-	} else if (!j->hopefully_exits_last) {
+	} else if (!j->anonymous && !j->hopefully_exits_last) {
 		j->mgr->normal_active_cnt--;
 	}
 	j->last_exit_status = status;
@@ -3468,6 +3468,10 @@
 		return jm;
 	}
 
+	if (jm->parentmgr && jm->parentmgr->shutting_down && jm->parentmgr->hopefully_first_cnt) {
+		return jm;
+	}
+
 	if (!jm->sent_stop_to_normal_jobs) {
 		jobmgr_log(jm, LOG_DEBUG, "Asking \"normal\" jobs to exit.");
 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/launchd-changes/attachments/20070404/4d6245ee/attachment.html


More information about the launchd-changes mailing list