gitpython-developers/GitPython — pull request #58 by sugi (2012-05-08 00:51:31+00:00)
Title: Fixes on cmd.py (fd leak and signal exception)

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.

cb68f36c9a2cd18a38e2b2c4630fd2131bfa3879 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.

f467834059bb1297df97df4e03149cd2b48b81e3 fix just ignore OSError on os.kill.