Revision: 23949 http://trac.macosforge.org/projects/launchd/changeset/23949 Author: dsorresso@apple.com Date: 2009-11-17 16:10:09 -0800 (Tue, 17 Nov 2009) Log Message: ----------- Whoops. Modified Paths: -------------- branches/PR-7264615/launchd/src/launchd_core_logic.c Modified: branches/PR-7264615/launchd/src/launchd_core_logic.c =================================================================== --- branches/PR-7264615/launchd/src/launchd_core_logic.c 2009-11-18 00:01:44 UTC (rev 23948) +++ branches/PR-7264615/launchd/src/launchd_core_logic.c 2009-11-18 00:10:09 UTC (rev 23949) @@ -3262,7 +3262,7 @@ * * Note that we foolishly assume that in the process *tree* a node cannot be its * own parent. Apparently, that is not correct. If this is the case, we forsake - * the process to its own device. Let it reap itself. + * the process to its own devices. Let it reap itself. */ if( !job_assumes(j, kp.kp_eproc.e_ppid != (pid_t)kev->ident) ) { job_log(j, LOG_WARNING, "Job is its own parent and has (somehow) exited. Leaving it to waste away."); @@ -7343,7 +7343,7 @@ return 1; } - if( !job_assumes(j, pid_to_log == kp.kp_eproc.e_ppid) ) { + if( !job_assumes(j, pid_to_log != kp.kp_eproc.e_ppid) ) { job_log(j, LOG_WARNING, "Job which is its own parent started reboot."); snprintf(who_started_the_reboot, sizeof(who_started_the_reboot), "%s[%u]->%s[%u]->%s[%u]->...", kp.kp_proc.p_comm, pid_to_log, kp.kp_proc.p_comm, pid_to_log, kp.kp_proc.p_comm, pid_to_log); break;
participants (1)
-
source_changes@macosforge.org