diff --git a/core/workers/tracer/syscall.py b/core/workers/tracer/syscall.py index 38832b4..38ecec6 100644 --- a/core/workers/tracer/syscall.py +++ b/core/workers/tracer/syscall.py @@ -34,14 +34,6 @@ class SyscallTracer(BaseTracer): self.timeout: int = timeout self.process: PtraceProcess = None - def is_waiting(self, syscall: PtraceSyscall) -> bool: - if syscall.name.startswith("wait"): - return True - return False - - def attach(self): - self.process = self.debugger.addProcess(self.pid, False) - def detach(self): self.process.detach() self.debugger.quit() @@ -62,6 +54,7 @@ class SyscallTracer(BaseTracer): self.reset_timer() def wait_until_stop_or_exit(self) -> Tuple[Optional[int], str]: + self.process = self.debugger.addProcess(self.pid, False) self.process.syscall() exitcode = None reason = ""