summaryrefslogtreecommitdiffstats
path: root/contrib/llvm/lib/CodeGen/LiveRangeCalc.cpp
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2015-05-26 10:29:37 +0000
committerjhb <jhb@FreeBSD.org>2015-05-26 10:29:37 +0000
commit588ce3236a20b467813e2321265e258c0a84f5a1 (patch)
tree4c92a81554f975aa5b4ca91db4d1703f48316886 /contrib/llvm/lib/CodeGen/LiveRangeCalc.cpp
parent328092022899ce08a20da1b885e132ea590269cb (diff)
downloadFreeBSD-src-588ce3236a20b467813e2321265e258c0a84f5a1.zip
FreeBSD-src-588ce3236a20b467813e2321265e258c0a84f5a1.tar.gz
Do not allow a process to reap an orphan (a child currently being
traced by another process such as a debugger). The parent process does need to check for matching orphan pids to avoid returning ECHILD if an orphan has exited, but it should not return the exited status for the child until after the debugger has detached from the orphan process either explicitly or implicitly via wait(). Add two tests for for this case: one where the debugger is the direct child (thus the parent has a non-empty children list) and one where the debugger is not a direct child (so the only "child" of the parent is the orphan). Differential Revision: https://reviews.freebsd.org/D2644 Reviewed by: kib MFC after: 2 weeks
Diffstat (limited to 'contrib/llvm/lib/CodeGen/LiveRangeCalc.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud