diff options
author | stijn <stijn@ignitron.net> | 2023-10-10 12:48:46 +0200 |
---|---|---|
committer | Damien George <damien@micropython.org> | 2024-10-09 15:03:07 +1100 |
commit | 6835743dccf0e8d0a677e8500af0c5a4b19fe645 (patch) | |
tree | 37c43148369ba49bf0da797f4e0f7e6e9f580efd /docs/esp32/tutorial/intro.rst | |
parent | d50e36e7e4b53789ceb6bafcfaa7f4a2ea5c0e29 (diff) |
extmod/vfs_posix_file: Skip flush of tty handles in msvc debug builds.
In MSVC debug builds with debug error reporting set to showing a dialog (to
allow attaching the debugger), any application which imports the logging
module and leaves the default handlers would result in this dialog because
logging.shutdown is called at exit and that flushes the default handler
which has stderr as its stream.
This commit fixes that by not fsync'ing stdin/out/err.
Also adds a comment related to checking whether a file is stdin/out/err,
which is difficult to fix properly.
Signed-off-by: stijn <stijn@ignitron.net>
Diffstat (limited to 'docs/esp32/tutorial/intro.rst')
0 files changed, 0 insertions, 0 deletions