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

drivers/pipe: fix blocking file_pipe #9130

Merged
merged 1 commit into from
Apr 28, 2023

Conversation

tmedicci
Copy link
Contributor

@tmedicci tmedicci commented Apr 27, 2023

Summary

Fix #9129

Similar to the fix introduced by #8985, it's necessary to set one end of the file_pipe as non-blocking temporarily while opening the other end to avoid it blocking unexpectedly.

Impact

Fix #9129

Testing

Internal CI, pipe app and SIM, with:

./tools/configure.sh sim:adb
make -j8
./nuttx
adbd &

and,

sudo apt-get install adb
adb kill-server
adb shell

Similar to the fix introduced by
4d6a866, it's necessary to set
one end of the file_pipe as non-blocking temporarily while opening
the other end to avoid it blocking unexpectedily.
@xiaoxiang781216 xiaoxiang781216 merged commit d4e7fe5 into apache:master Apr 28, 2023
26 checks passed
@jerpelea jerpelea added this to To-Add in Release Notes - 12.2.0 Jun 13, 2023
@jerpelea jerpelea moved this from To-Add to In Progress in Release Notes - 12.2.0 Jun 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Development

Successfully merging this pull request may close these issues.

pty driver is broken by https://github.com/apache/nuttx/pull/8985
2 participants