Skip to content

Commit 69e9c7a

Browse files
authored
Update appium_service.py
appium#962 add a Popen.communicate call after terminate to ensure that file stdout and sdterr file descriptors are closed properly.
1 parent 6f48898 commit 69e9c7a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

appium/webdriver/appium_service.py

+1
Original file line numberDiff line numberDiff line change
@@ -235,6 +235,7 @@ def stop(self) -> bool:
235235
if self.is_running:
236236
assert self._process
237237
self._process.terminate()
238+
self._process.communicate(timeout=5)
238239
is_terminated = True
239240
self._process = None
240241
self._cmd = None

0 commit comments

Comments
 (0)