Преглед на файлове

Kernel: Detach any attached thread tracer on sys$abort()

Andreas Kling преди 4 години
родител
ревизия
261b30e120
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      Kernel/Syscall.cpp

+ 1 - 1
Kernel/Syscall.cpp

@@ -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()) {