Index: testing_support/fake_repos.py |
=================================================================== |
--- testing_support/fake_repos.py (revision 222767) |
+++ testing_support/fake_repos.py (working copy) |
@@ -267,7 +267,11 @@ |
pid = int(self.git_pid_file.read()) |
self.git_pid_file.close() |
logging.debug('Killing git daemon pid %s' % pid) |
- subprocess2.kill_pid(pid) |
+ try: |
+ subprocess2.kill_pid(pid) |
+ except OSError, e: |
M-A Ruel
2013/09/12 12:55:58
except OSError as e:
rmistry
2013/09/12 13:56:43
Done here and above.
|
+ if e.errno != errno.ESRCH: # no such process |
+ raise |
self.git_pid_file = None |
wait_for_port_to_free(self.host, self.git_port) |
self.git_port = None |