1
0
mirror of https://github.com/UzixLS/picocom.git synced 2025-07-19 07:21:18 +03:00

Set correct term_errno when tcflush fails.

This commit is contained in:
Nick Patavalis
2017-12-20 01:31:08 +02:00
parent 69e16a3a70
commit 33c2332c18

1
term.c
View File

@ -1648,6 +1648,7 @@ term_flush(int fd)
r = tcflush(fd, TCIOFLUSH);
if ( r < 0 ) {
term_errno = TERM_EFLUSH;
rval = -1;
break;
}