Projects
Browse Source     Search     Timeline     Wiki

Changeset 23242

Show
Ignore:
Timestamp:
05/07/07 14:15:05 (19 months ago)
Author:
zarzycki@…
Message:

<rdar://problem/5179313> Log: launchd_core_logic.c:1986 (23240):2: (flags & EV_ONESHOT)

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/launchd/src/launchd_core_logic.c

    r23240 r23242  
    998998 
    999999        if (jobmgr_assumes(jm, (jr = job_new(jm, AUTO_PICK_LEGACY_LABEL, kp.kp_proc.p_comm, NULL)) != NULL)) { 
    1000                 u_int proc_fflags = NOTE_EXEC|NOTE_EXIT; 
    1001  
    1002 #ifdef NOTE_REAP 
    1003                 proc_fflags |= NOTE_REAP; 
    1004 #endif 
     1000                u_int proc_fflags = NOTE_EXEC|NOTE_EXIT|NOTE_REAP; 
    10051001 
    10061002                total_children++; 
     
    19841980 
    19851981        if (fflags & NOTE_EXIT) { 
    1986                 job_assumes(j, (flags & EV_ONESHOT)); 
    1987                 job_assumes(j, (flags & EV_EOF)); 
    19881982                job_reap(j); 
    19891983 
    19901984                if (j->anonymous) { 
    19911985                        job_remove(j); 
     1986                        j = NULL; 
    19921987                } else { 
    19931988                        j = job_dispatch(j, false); 
     
    19951990        } 
    19961991 
    1997 #ifdef NOTE_REAP 
    19981992        if (j && (fflags & NOTE_REAP)) { 
     1993                job_assumes(j, flags & EV_ONESHOT); 
     1994                job_assumes(j, flags & EV_EOF); 
     1995 
    19991996                job_assumes(j, j->p == 0); 
    20001997        } 
    2001 #endif 
    20021998} 
    20031999 
     
    21222118        bool sipc = false; 
    21232119        time_t td; 
    2124         u_int proc_fflags = /* NOTE_EXEC|NOTE_FORK| */ NOTE_EXIT; 
    2125  
    2126 #ifdef NOTE_REAP 
    2127         proc_fflags |= NOTE_REAP; 
    2128 #endif 
     2120        u_int proc_fflags = /* NOTE_EXEC|NOTE_FORK| */ NOTE_EXIT|NOTE_REAP; 
    21292121 
    21302122        if (!job_assumes(j, j->mgr != NULL)) {