Delete code to usb_mux set slave PTYs to non-blocking #48
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
As far as I understand, the file status flag O_NON_BLOCK only affects this process' use of the fd, and other processes that inherit it in some way or the other. But here, the fd isn't used after tty.setraw(slave). Other processes, e.g., tkey-runapp, will open the slave pty by name, and it then gets its own fd and set of file status flags.
(It still seems the slave pty fd needs to be kept open, even though it is unused and leaked after create_pty returns. I'm not sure how to refactor the program to be able to just close this apparently unused fd immediately after
.setraw).Fixes # (issues)
Type of change
Please tick any that are relevant to this PR and remove any that aren't.
Submission checklist