early bailout conditions caught by type check
This commit is contained in:
parent
f7c7496cfd
commit
bdf0fb323e
2 changed files with 4 additions and 0 deletions
|
|
@ -61,6 +61,8 @@ class Process(AbstractProcess):
|
|||
self.pid = process_id
|
||||
|
||||
def close(self) -> None:
|
||||
if self.pid is None:
|
||||
return
|
||||
os.kill(self.pid, signal.SIGSTOP)
|
||||
os.waitpid(self.pid, 0)
|
||||
ptrace(ptrace_commands['PTRACE_DETACH'], self.pid, 0, 0)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue