We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 023b034 commit 0b5a9cfCopy full SHA for 0b5a9cf
tools/idf_monitor/idf_monitor_base/console_reader.py
@@ -94,4 +94,8 @@ def _cancel(self):
94
# Note: This would throw exception in testing mode when the stdin is connected to PTY.
95
import fcntl
96
import termios
97
- fcntl.ioctl(self.console.fd, termios.TIOCSTI, b'\0')
+ try:
98
+ fcntl.ioctl(self.console.fd, termios.TIOCSTI, b'\0')
99
+ except OSError:
100
+ # ignore I/O errors when injecting the “unblock” byte
101
+ pass
0 commit comments