Crashpad
|
Maintains a ptrace()
attachment to a process.
More...
#include "util/linux/scoped_ptrace_attach.h"
Public Member Functions | |
bool | Reset () |
Detaches from the process by calling ptrace() . More... | |
bool | ResetAttach (pid_t pid) |
Detaches from any previously attached process, attaches to the process with process ID pid, and blocks until the target process has stopped by calling waitpid() . More... | |
Maintains a ptrace()
attachment to a process.
On destruction, the process will be detached.
bool crashpad::ScopedPtraceAttach::Reset | ( | ) |
Detaches from the process by calling ptrace()
.
true
on success. false
on failure, with a message logged. bool crashpad::ScopedPtraceAttach::ResetAttach | ( | pid_t | pid | ) |
Detaches from any previously attached process, attaches to the process with process ID pid, and blocks until the target process has stopped by calling waitpid()
.
true
on success. false
on failure, with a message logged.