Commit Graph

10 Commits

Author SHA1 Message Date
bdf0fb323e early bailout conditions caught by type check 2024-03-30 17:41:44 -07:00
f7c7496cfd get_path should return None on failure 2024-03-30 17:41:23 -07:00
e56ec88761 modernize some code style
indentation, type annotations, f-strings
2024-03-30 17:41:18 -07:00
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.
2022-04-30 22:37:17 -05:00
5a032da984 try to reduce log spam 2021-04-08 19:49:19 -07:00
6913f73db4 cosmetic and typing-related changes 2020-11-01 20:16:46 -08:00
4deaa41d7e whitespace fixes 2019-10-27 13:05:27 -07:00
a13e622f7a Fix type annotations and docs. 2017-06-21 01:45:39 -07:00
b50b37c1c4 Style fixes 2017-06-21 01:44:57 -07:00
a6b5f94bf5 initial commit 2017-06-21 01:29:38 -07:00