Changeset 23476
- Timestamp:
- 12/21/07 13:53:37 (12 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
r23475 r23476 6523 6523 job_log(j, LOG_DEBUG, "Setting policy on job \"%s\" for Mach service: %s", target_j->label, target_service); 6524 6524 if (target_service[0]) { 6525 job_assumes(j, mspolicy_new(target_j, target_service, flags & BOOTSTRAP_ALLOW_LOOKUP, flags & BOOTSTRAP_PER_PID_SERVICE, false)); 6525 bool r = mspolicy_new(target_j, target_service, flags & BOOTSTRAP_ALLOW_LOOKUP, flags & BOOTSTRAP_PER_PID_SERVICE, false); 6526 6527 if (unlikely(!r) && job_assumes(j, errno == EEXIST)) { 6528 job_log(j, LOG_ERR, "Tried to update a known policy on PID %u: %s", target_pid, target_service); 6529 } 6526 6530 } else { 6527 6531 target_j->deny_unknown_mslookups = !(flags & BOOTSTRAP_ALLOW_LOOKUP); … … 6669 6673 continue; 6670 6674 } else if (strcmp(msp->name, name) == 0) { 6675 errno = EEXIST; 6671 6676 return false; 6672 6677 }

