mirror of
https://github.com/tio/tio.git
synced 2026-05-01 14:57:59 +02:00
Fix tty_write to return error code (negative value) in error case
This commit is contained in:
parent
5045ca1768
commit
e73ff6d208
2 changed files with 2 additions and 2 deletions
|
|
@ -299,7 +299,7 @@ ssize_t tty_write(int fd, void *buffer, size_t count)
|
|||
{
|
||||
// Error
|
||||
tio_debug_printf("Write error (%s)", strerror(errno));
|
||||
break;
|
||||
return retval;
|
||||
}
|
||||
bytes_written += retval;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue