Catch OSError from ForkedProcess that has already exited.
This commit is contained in:
parent
d343eb044d
commit
0e06c50402
@ -321,9 +321,14 @@ class ForkedProcess(RemoteEventHandler):
|
|||||||
#os.kill(pid, 9)
|
#os.kill(pid, 9)
|
||||||
try:
|
try:
|
||||||
self.close(callSync='sync', timeout=timeout, noCleanup=True) ## ask the child process to exit and require that it return a confirmation.
|
self.close(callSync='sync', timeout=timeout, noCleanup=True) ## ask the child process to exit and require that it return a confirmation.
|
||||||
os.waitpid(self.childPid, 0)
|
|
||||||
except IOError: ## probably remote process has already quit
|
except IOError: ## probably remote process has already quit
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
try:
|
||||||
|
os.waitpid(self.childPid, 0)
|
||||||
|
except OSError: ## probably remote process has already quit
|
||||||
|
pass
|
||||||
|
|
||||||
self.hasJoined = True
|
self.hasJoined = True
|
||||||
|
|
||||||
def kill(self):
|
def kill(self):
|
||||||
|
Loading…
Reference in New Issue
Block a user