diff options
author | Sean Finney <seanius@debian.org> | 2010-11-07 10:54:05 +0100 |
---|---|---|
committer | Sean Finney <seanius@debian.org> | 2010-11-07 10:54:05 +0100 |
commit | 3ad04e54bfa606d65814c1f819f50932f571c659 (patch) | |
tree | 5b7b87b08696a79c0f898ff77660089c1d1cb51a | |
parent | 5af5fcfce668c2d44a5593e9281241652ca78120 (diff) | |
download | patch-tracker-3ad04e54bfa606d65814c1f819f50932f571c659.tar.gz |
Explicitly close a popen3(patch) fd to avoid lockups
Thanks to Bernhard R. Link for the suggestion.
-rw-r--r-- | patchtracker/DiffGzHandler.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/patchtracker/DiffGzHandler.py b/patchtracker/DiffGzHandler.py index 84be827..515b3ed 100644 --- a/patchtracker/DiffGzHandler.py +++ b/patchtracker/DiffGzHandler.py @@ -44,6 +44,7 @@ class DiffGzHandler: if embedded.lines(): td = tempfile.mkdtemp() i,o,e=os.popen3("patch -d %s -p3"%(td)) + o.close() i.write(str(embedded)) i.close() err = e.read() |