| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Using os.dup() to create copies of file descriptors prevents closing the original sys.stdin/sys.stdout when the TextIOWrapper is closed. Fixes: modelcontextprotocol#1933
|
Thanks for your contribution! Closing this in favour of #2040 as that predates this PR. |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Description
Using os.dup() to create copies of file descriptors prevents closing the original sys.stdin/sys.stdout when the TextIOWrapper is closed.
Fixes
Fixes #1933
Changes
Testing
The fix can be tested by running:
After exiting the server with Ctrl+D, the print should work without errors.