Fix tty_write to return error code (negative value) in error case

This commit is contained in:
yabu76 2025-12-30 21:04:29 +09:00
parent 5045ca1768
commit e73ff6d208
2 changed files with 2 additions and 2 deletions

View file

@ -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;