Victor Stinner
Victor Stinner
At https://travis-ci.com/github/vstinner/python-ptrace/builds I have a banner: "Builds have been temporarily disabled for public repositories due to a negative credit balance. Please go to the Plan page to replenish your credit...
Please provide a pull request. I no longer actively maintain this project.
Can you come up with a fix? This project is basically unmaintained, you have to fix the bugs that you find :-)
Ah yes, Python 3 has a similar code in subprocess. My http://www.python.org/dev/peps/pep-0446/ might allow to avoid completely closing all FDs, but I didn't try.
I don't maintain this project anymore, I'm looking for a new maintainer.
FYI I'm not working anymore on this project and ptrace remains a big mystery for me :-) Good luck to find the correct way to use ptrace :-D
You can use `python3 -c 'import signal; signum=signal.SIGABRT; signal.signal(signum, signal.SIG_DFL); signal.raise_signal(signum)'` (or write a script for that) for example to get a program killed by a signal in a reliable...
python-ptrace is implemented in Python, it's slower than strace which is written in C. python-ptrace was never optimized, maybe there are some obvious non-efficient code. There is also a cptrace...
Your patch looks wrong: I see waitExit() in the traceback. The purpose of the function is to wait for the completion of the process, the exception should be handled here.
The cont() exception should be catched in waitExit().