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

Fixed an issue with run_command() sometimes locking up #16

Merged
merged 5 commits into from
Nov 11, 2022

Conversation

makermelissa
Copy link
Contributor

Upon further research it would lock up when there was output to stderr and the read() function was used. There were additional issues when stdout didn't have a newline character, the output didn't work properly. This was most noticeable when sudo apt-get upgrade was occasionally run. This adds a non-blocking read function and fixes some other issues.

Tested successfully with https://github.com/adafruit/Raspberry-Pi-Installer-Scripts/blob/main/raspi-blinka.py where it was most apparent.

@ladyada

@makermelissa makermelissa requested review from a team and ladyada November 10, 2022 20:52
@makermelissa makermelissa requested review from brentru and removed request for ladyada November 10, 2022 22:23
@makermelissa makermelissa merged commit 0a235e3 into adafruit:main Nov 11, 2022
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.

None yet

2 participants