Projects
Browse Source     Search     Timeline     Wiki

Changeset 23246

Show
Ignore:
Timestamp:
05/08/07 11:17:51 (19 months ago)
Author:
zarzycki@…
Message:

Improved logging.

Files:
1 modified

Legend:

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

    r23245 r23246  
    16711671 
    16721672        if (jm->jm_port == mport) { 
    1673                 return jobmgr_find_by_pid(jm, upid, true); 
     1673                jobmgr_assumes(jm, (ji = jobmgr_find_by_pid(jm, upid, true)) != NULL); 
     1674                return ji; 
    16741675        } 
    16751676 
     
    17091710 
    17101711                if (jobmgr_assumes(root_jobmgr, sysctl(mib, 4, &kp, &len, NULL, 0) != -1)) { 
    1711                         jobmgr_log(root_jobmgr, LOG_ERR, "%s() was confused by PID %u: %s", __func__, ldc.pid, kp.kp_proc.p_comm); 
     1712                        jobmgr_log(root_jobmgr, LOG_ERR, "%s() was confused by PID %u UID %u EUID %u Mach Port 0x%x: %s", __func__, ldc.pid, ldc.uid, ldc.euid, p, kp.kp_proc.p_comm); 
    17121713                } 
    17131714        } 
     
    52275228        } 
    52285229 
    5229         if (getpid() != 1 && job_mig_intran(target_subset)) { 
     5230        /* We call job_mig_intran2 because job_mig_intran logs on failure */ 
     5231        if (getpid() != 1 && job_mig_intran2(root_jobmgr, target_subset, getpid())) { 
    52305232                kr = 0; 
    52315233                goto out;