Skip to content

fix: unclosed file <_io.BufferedReader name error by proper cleanup of subprocess.Popen process#965

Merged
KazuCocoa merged 1 commit intoappium:masterfrom
WrrngnCode:patch-1
Feb 24, 2024
Merged

fix: unclosed file <_io.BufferedReader name error by proper cleanup of subprocess.Popen process#965
KazuCocoa merged 1 commit intoappium:masterfrom
WrrngnCode:patch-1

Conversation

@WrrngnCode
Copy link
Copy Markdown
Contributor

#962

After self._process.terminate() a call to Popen.communicate()](https://docs.python.org/3/library/subprocess.html#subprocess.Popen.communicate) shall be made, which will close the file handles.
This will ensure that file stdout and sdterr file descriptors are closed properly.

#962
add a Popen.communicate call after terminate to ensure that file stdout and sdterr file descriptors are closed properly.
@linux-foundation-easycla
Copy link
Copy Markdown

linux-foundation-easycla bot commented Feb 24, 2024

CLA Signed


The committers listed above are authorized under a signed CLA.

@WrrngnCode WrrngnCode changed the title Update appium_service.py fix unclosed file <_io.BufferedReader name error by proper cleanup of subprocess.Popen process Feb 24, 2024
@KazuCocoa KazuCocoa changed the title fix unclosed file <_io.BufferedReader name error by proper cleanup of subprocess.Popen process fix: unclosed file <_io.BufferedReader name error by proper cleanup of subprocess.Popen process Feb 24, 2024
@KazuCocoa KazuCocoa merged commit ac9965d into appium:master Feb 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants