Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
ptrace: Allow other threads to access tracee
Currently only the tracing thread can call ptrace on a given pid. This patch allows any task in the tracing thread's thread group to also call ptrace. This makes it easier and more performant to write multi-threaded applications that use ptrace. In our ptrace-based simulator, we currently work-around this limitation by stopping and detaching inactive tracees, so that any thread in our worker thread pool can later re-attach and resume control of the tracee. This detaching and reattaching carries with it a significant performance overhead. With this patch, detaching and reattaching is no longer necessary. Signed-off-by: James Newsome <jnewsome@torproject.org>
- Loading branch information