Projects
Browse Source     Search     Timeline     Wiki

Changeset 23620

Show
Ignore:
Timestamp:
05/05/08 13:23:42 (7 months ago)
Author:
zarzycki@…
Message:

<rdar://problem/5804075> launchd fork/exec log message is incorrect

Files:
1 modified

Legend:

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

    r23618 r23620  
    476476static void job_callback_read(job_t j, int ident); 
    477477static void job_log_stray_pg(job_t j); 
    478 static void job_log_chidren_without_exec(job_t j); 
     478static void job_log_children_without_exec(job_t j); 
    479479static job_t job_new_anonymous(jobmgr_t jm, pid_t anonpid) __attribute__((malloc, nonnull, warn_unused_result)); 
    480480static job_t job_new(jobmgr_t jm, const char *label, const char *prog, const char *const *argv) __attribute__((malloc, nonnull(1,2), warn_unused_result)); 
     
    25652565 
    25662566void 
    2567 job_log_chidren_without_exec(job_t j) 
     2567job_log_children_without_exec(job_t j) 
    25682568{ 
    25692569        /* <rdar://problem/5701343> ER: Add a KERN_PROC_PPID sysctl */ 
     
    26002600                } 
    26012601 
    2602                 job_log(j, LOG_APPLEONLY, "Performance and sanity: fork() without exec*(). Please switch to posix_spawn(). Child PID %u", 
     2602                job_log(j, LOG_APPLEONLY, "Called *fork(). Please switch to posix_spawn*(), pthreads or launchd. Child PID %u", 
    26032603                                kp[i].kp_proc.p_pid); 
    26042604        } 
     
    26422642        if (fflags & NOTE_FORK) { 
    26432643                job_log(j, LOG_DEBUG, "fork()ed%s", program_changed ? ". For this message only: We don't know whether this event happened before or after execve()." : ""); 
    2644                 job_log_chidren_without_exec(j); 
     2644                job_log_children_without_exec(j); 
    26452645        } 
    26462646