]> git.saurik.com Git - apple/launchd.git/commitdiff
launchd-329.3.1.tar.gz mac-os-x-1064 v329.3.1
authorApple <opensource@apple.com>
Thu, 8 Apr 2010 00:28:54 +0000 (00:28 +0000)
committerApple <opensource@apple.com>
Thu, 8 Apr 2010 00:28:54 +0000 (00:28 +0000)
launchd/src/launchd_core_logic.c

index 58f8bd8c4d9f0a24bab8421e4aff785bea8357b7..9d2352789e66dc0aa443a8ef1737bda0fa702e07 100644 (file)
@@ -16,7 +16,7 @@
  * @APPLE_APACHE_LICENSE_HEADER_END@
  */
 
-static const char *const __rcs_file_version__ = "$Revision: 24003 $";
+static const char *const __rcs_file_version__ = "$Revision: 24108 $";
 
 #include "config.h"
 #include "launchd_core_logic.h"
@@ -1439,7 +1439,7 @@ job_new_anonymous(jobmgr_t jm, pid_t anonpid)
        }
 
        if (jobmgr_assumes(jm, (jr = job_new(jm, AUTO_PICK_ANONYMOUS_LABEL, kp.kp_proc.p_comm, NULL)) != NULL)) {
-               u_int proc_fflags = NOTE_EXEC|NOTE_FORK|NOTE_EXIT|NOTE_REAP;
+               u_int proc_fflags = NOTE_EXEC|NOTE_FORK|NOTE_EXIT;
 
                total_anon_children++;
                jr->anonymous = true;
@@ -3338,10 +3338,6 @@ job_callback_proc(job_t j, struct kevent *kev)
                        j = NULL;
                }
        }
-
-       if (j && (fflags & NOTE_REAP)) {
-               job_assumes(j, j->p == 0);
-       }
 }
 
 void
@@ -3588,7 +3584,7 @@ job_start(job_t j)
        char nbuf[64];
        pid_t c;
        bool sipc = false;
-       u_int proc_fflags = NOTE_EXIT|NOTE_FORK|NOTE_EXEC|NOTE_REAP;
+       u_int proc_fflags = NOTE_EXIT|NOTE_FORK|NOTE_EXEC;
        
        if (!job_assumes(j, j->mgr != NULL)) {
                return;