| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Currently if command is called with as_proces=True, pipes for the command will not be closed. This change makes sure to close command file descriptors.
When command run as subprocess, AutoInterrupt will kill the process on destructor. However, if process already finished, it raise OSError exception. This fix just ignore OSError on os.kill.
|
Thank you for fixing this - this one is a critical issue ! |
Sorry, something went wrong.
|
Please note that I am merging it into master, which is the latest development stream for the upcoming 0.4 release. This means that 0.3 branches would need a backport. In this case, it would be easy to do though. |
Sorry, something went wrong.
Fixes on cmd.py (fd leak and signal exception) Currently if command is called with as_proces=True, pipes for the command will not be closed. cb68f36 makes sure to close command file descriptors. Ignore signal exception on AutoInterrupt destructor. When command run as subprocess, AutoInterrupt will kill the process on destructor. However, if process already finished, it raise OSError exception.
Test Python 3.7 on Ubuntu 22.04, and add Ubuntu 3.13
| Back | FazBrowse Home | New Git URL |
Hello,
I found some problems on cmd.py and tried to write fixes.
Please consider to merge.
Fix fd leak on git cmd.
Currently if command is called with as_proces=True, pipes for the
command will not be closed.
cb68f36 makes sure to close command file descriptors.
Ignore signal exception on AutoInterrupt destructor.
When command run as subprocess, AutoInterrupt will kill the
process on destructor. However, if process already finished,
it raise OSError exception.
f467834 fix just ignore OSError on os.kill.