[launchd-changes] [23952] branches/PR-7264615/launchd/src/launchd_core_logic.c

source_changes at macosforge.org source_changes at macosforge.org
Tue Nov 17 16:51:59 PST 2009


Revision: 23952
          http://trac.macosforge.org/projects/launchd/changeset/23952
Author:   dsorresso at apple.com
Date:     2009-11-17 16:51:59 -0800 (Tue, 17 Nov 2009)
Log Message:
-----------
Updated comment.

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:45:29 UTC (rev 23951)
+++ branches/PR-7264615/launchd/src/launchd_core_logic.c	2009-11-18 00:51:59 UTC (rev 23952)
@@ -1465,7 +1465,10 @@
 	}
 
 	/* This is down here to mitigate the effects of rdar://problem/7264615, in which a process
-	 * attaches to its own parent.
+	 * attaches to its own parent. We need to make sure that the anonymous job has been added
+	 * to the process list so that, if it's used ptrace(3) to cause a cycle in the process
+	 * tree (thereby making it not a tree anymore), we'll find the tracing parent PID of the
+	 * parent process, which is the child, when we go looking for it in jobmgr_find_by_pid().
 	 */
 	switch (kp.kp_eproc.e_ppid) {
 		case 0:
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/launchd-changes/attachments/20091117/e3e5af85/attachment.html>


More information about the launchd-changes mailing list