mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 16:47:36 +00:00
Kernel: Detach any attached thread tracer on sys$abort()
This commit is contained in:
parent
ac71775de5
commit
261b30e120
1 changed files with 1 additions and 1 deletions
|
@ -93,7 +93,7 @@ KResultOr<FlatPtr> handle(RegisterState& regs, FlatPtr function, FlatPtr arg1, F
|
||||||
auto& process = current_thread->process();
|
auto& process = current_thread->process();
|
||||||
current_thread->did_syscall();
|
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.
|
// These syscalls need special handling since they never return to the caller.
|
||||||
|
|
||||||
if (auto* tracer = process.tracer(); tracer && tracer->is_tracing_syscalls()) {
|
if (auto* tracer = process.tracer(); tracer && tracer->is_tracing_syscalls()) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue