Projects
Browse Source     Search     Timeline     Wiki

Changeset 23476

Show
Ignore:
Timestamp:
12/21/07 13:53:37 (12 months ago)
Author:
zarzycki@…
Message:

<rdar://problem/5317778> Bug: launchd_core_logic.c:5810 (23281):0: mspolicy_new(target_j, target_service, flags & BOOTSTRAP_ALLOW_LOOKUP, flags & BOOTSTRAP_PER_PID_SERVICE, false)

Files:
1 modified

Legend:

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

    r23475 r23476  
    65236523                job_log(j, LOG_DEBUG, "Setting policy on job \"%s\" for Mach service: %s", target_j->label, target_service); 
    65246524                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                        } 
    65266530                } else { 
    65276531                        target_j->deny_unknown_mslookups = !(flags & BOOTSTRAP_ALLOW_LOOKUP); 
     
    66696673                        continue; 
    66706674                } else if (strcmp(msp->name, name) == 0) { 
     6675                        errno = EEXIST; 
    66716676                        return false; 
    66726677                }