Skip to content

Commit

Permalink
Kill everything if tracer dies
Browse files Browse the repository at this point in the history
  • Loading branch information
i-ky committed Feb 23, 2023
1 parent 36f5277 commit 1b8beda
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/basset.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ int main(int argc, char *argv[]) {

if (ptrace(PTRACE_SETOPTIONS, pid, nullptr,
PTRACE_O_TRACECLONE | PTRACE_O_TRACEFORK | PTRACE_O_TRACEVFORK |
PTRACE_O_TRACEEXEC) == -1) {
PTRACE_O_TRACEEXEC | PTRACE_O_EXITKILL) == -1) {
perror("cannot ptrace(PTRACE_SETOPTIONS)");
return -1;
}
Expand Down

0 comments on commit 1b8beda

Please sign in to comment.