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

Close opened file handler on closing the serial port #638

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

rkandilarov
Copy link

When using the spy://URI?file=SOME_FILE_&raw format for serial port the SOME_FILE_ is opened and its file handler is not closed when the serial port is closed. This patch fixes this. By default the opened stream is 'stderr' which cannot be closed, so check for its existence is made.

When using the  spy://___URI___?file=__SOME_FILE___&raw format for serial port the __SOME_FILE___ is opened and its file handler is not closed when the serial port is closed. This patch fixes this. By default the opened stream is 'stderr' which cannot be closed, so check for its existence is made.
@rkandilarov
Copy link
Author

rkandilarov commented Feb 13, 2022

Now I see that this is also fixed in other proposal, that do extends the spy functionality in #604 .

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

1 participant