]> git.saurik.com Git - apple/launchd.git/commitdiff
launchd-329.3.3.tar.gz mac-os-x-1066 mac-os-x-1067 mac-os-x-1068 v329.3.3
authorApple <opensource@apple.com>
Tue, 30 Nov 2010 22:51:04 +0000 (22:51 +0000)
committerApple <opensource@apple.com>
Tue, 30 Nov 2010 22:51:04 +0000 (22:51 +0000)
launchd/src/launchd_core_logic.c

index 5f6a5b7463edab6c89b6378c4056ee276ec07214..6daf059fe47d49ab5ab4c2f6215bbbb44112c8a1 100644 (file)
@@ -16,7 +16,7 @@
  * @APPLE_APACHE_LICENSE_HEADER_END@
  */
 
-static const char *const __rcs_file_version__ = "$Revision: 24208 $";
+static const char *const __rcs_file_version__ = "$Revision: 24498 $";
 
 #include "config.h"
 #include "launchd_core_logic.h"
@@ -2785,7 +2785,8 @@ job_reap(job_t j)
                LIST_REMOVE(spi, sle);
                free(spi);
        }
-       
+
+       j->last_exit_status = status;
        struct waiting_for_exit *w4e = NULL;
        while( (w4e = LIST_FIRST(&j->exit_watchers)) ) {
                waiting4exit_delete(j, w4e);
@@ -2810,7 +2811,6 @@ job_reap(job_t j)
        } else if (!j->anonymous && !j->hopefully_exits_last) {
                j->mgr->normal_active_cnt--;
        }
-       j->last_exit_status = status;
        j->sent_signal_time = 0;
        j->sent_sigkill = false;
        j->clean_kill = false;