Changeset 23334
- Timestamp:
- 08/14/07 09:30:48 (15 months ago)
- Files:
-
- 1 modified
-
trunk/launchd/src/launchd_core_logic.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/launchd/src/launchd_core_logic.c
r23333 r23334 986 986 return NULL; 987 987 } 988 989 if (!jobmgr_assumes(jm, anonpid < 100000)) { 990 /* The kernel current defines PID_MAX to be 99999, but that define isn't exported */ 991 return NULL; 992 } 988 993 989 994 if (!jobmgr_assumes(jm, sysctl(mib, 4, &kp, &len, NULL, 0) != -1)) { 995 return NULL; 996 } 997 998 if (!jobmgr_assumes(jm, kp.kp_proc.p_comm[0] != '\0')) { 990 999 return NULL; 991 1000 } … … 1002 1011 case 1: 1003 1012 if (getpid() != 1) { 1013 /* we cannot possibly find a parent job_t that is useful in this function */ 1004 1014 break; 1005 1015 }

