Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix leaked handles in set_columns, complete_cmd, run_cmd_qa, det_terminal_size functions + tests #4066

Merged
merged 8 commits into from
Sep 9, 2022

Conversation

Flamefire
Copy link
Contributor

@Flamefire Flamefire commented Aug 23, 2022

os.popen is used without closing the returned handle.
As this function is deprecated anyway replace it by subprocess_popen_text.

Also fix some more leaked handles from opened processes and files, extracted from #3790

@boegel boegel added the bug fix label Aug 31, 2022
@boegel boegel added this to the next release (4.6.1?) milestone Aug 31, 2022
`os.popen` is used without closing the returned handle.
As this function is deprecated anyway replace it by `subprocess_popen_text`.
@Flamefire Flamefire changed the title Fix leaked stty handle Fix leaked handles Sep 7, 2022
@Flamefire
Copy link
Contributor Author

@boegel I extracted some very similar commits from #3790 to this PR to make the other smaller.

@boegel boegel changed the title Fix leaked handles fix leaked handles in set_columns, complete_cmd, run_cmd_qa, det_terminal_size functions + tests Sep 9, 2022
Copy link
Member

@boegel boegel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@boegel boegel merged commit 6dc5424 into easybuilders:develop Sep 9, 2022
@Flamefire Flamefire deleted the fix-leaked-handle branch September 9, 2022 10:08
@Flamefire Flamefire mentioned this pull request Sep 9, 2022
2 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants