mirror of
https://github.com/tio/tio.git
synced 2026-05-01 14:57:59 +02:00
Show error message when reading port settings fail
This commit is contained in:
parent
4031636bce
commit
40c8753151
1 changed files with 1 additions and 0 deletions
|
|
@ -1031,6 +1031,7 @@ int tty_connect(void)
|
|||
/* Save current port settings */
|
||||
if (tcgetattr(fd, &tio_old) < 0)
|
||||
{
|
||||
tio_error_printf_silent("Could not get port settings (%s)", strerror(errno));
|
||||
goto error_tcgetattr;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue