Skip to content

Commit

Permalink
Kernel: Detach any attached thread tracer on sys$abort()
Browse files Browse the repository at this point in the history
  • Loading branch information
awesomekling committed Mar 1, 2021
1 parent ac71775 commit 261b30e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Kernel/Syscall.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ KResultOr<FlatPtr> handle(RegisterState& regs, FlatPtr function, FlatPtr arg1, F
auto& process = current_thread->process();
current_thread->did_syscall();

if (function == SC_exit || function == SC_exit_thread) {
if (function == SC_abort || function == SC_exit || function == SC_exit_thread) {
// These syscalls need special handling since they never return to the caller.

if (auto* tracer = process.tracer(); tracer && tracer->is_tracing_syscalls()) {
Expand Down

0 comments on commit 261b30e

Please sign in to comment.