Commit Graph

7 Commits (master)

Author SHA1 Message Date
xerool 46e9456fd4 linux: wait for process before detach, and send SIGCONT
I had issues with the ptrace call failing because the process had not yet stopped
from SIGSTOP.
From this stackoverflow answer, it seems that you can use waitpid to
wait until the process is actually stopped. In python, this is exposed
as os.waitpid.

https://stackoverflow.com/questions/20510300/ptrace-detach-fails-after-ptrace-cont-with-errno-esrch#20525326

Additionally, the process was left frozen. I send a SIGCONT to continue
the process after the detach, so that it isn't left stopped.
2 years ago
Jan Petykiewicz 5a032da984 try to reduce log spam 3 years ago
Jan Petykiewicz 6913f73db4 cosmetic and typing-related changes 4 years ago
Jan Petykiewicz 4deaa41d7e whitespace fixes 5 years ago
Jan Petykiewicz a13e622f7a Fix type annotations and docs. 7 years ago
Jan Petykiewicz b50b37c1c4 Style fixes 7 years ago
Jan Petykiewicz a6b5f94bf5 initial commit 7 years ago