mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-11 02:13:56 +09:00
Kernel: Detach any attached thread tracer on sys$abort()
This commit is contained in:
parent
ac71775de5
commit
261b30e120
Notes:
sideshowbarker
2024-07-18 21:48:59 +09:00
Author: https://github.com/awesomekling
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();
|
||||
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()) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue