Changeset 23242
- Timestamp:
- 05/07/07 14:15:05 (19 months ago)
- Files:
-
- 1 modified
-
trunk/launchd/src/launchd_core_logic.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/launchd/src/launchd_core_logic.c
r23240 r23242 998 998 999 999 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; 1005 1001 1006 1002 total_children++; … … 1984 1980 1985 1981 if (fflags & NOTE_EXIT) { 1986 job_assumes(j, (flags & EV_ONESHOT));1987 job_assumes(j, (flags & EV_EOF));1988 1982 job_reap(j); 1989 1983 1990 1984 if (j->anonymous) { 1991 1985 job_remove(j); 1986 j = NULL; 1992 1987 } else { 1993 1988 j = job_dispatch(j, false); … … 1995 1990 } 1996 1991 1997 #ifdef NOTE_REAP1998 1992 if (j && (fflags & NOTE_REAP)) { 1993 job_assumes(j, flags & EV_ONESHOT); 1994 job_assumes(j, flags & EV_EOF); 1995 1999 1996 job_assumes(j, j->p == 0); 2000 1997 } 2001 #endif2002 1998 } 2003 1999 … … 2122 2118 bool sipc = false; 2123 2119 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; 2129 2121 2130 2122 if (!job_assumes(j, j->mgr != NULL)) {

