mirror of
https://github.com/tio/tio.git
synced 2026-05-01 14:57:59 +02:00
Fix issue that output-delay doen't work in non-interactive mode
This commit is contained in:
parent
2b0e674ee4
commit
5045ca1768
1 changed files with 2 additions and 2 deletions
|
|
@ -2736,7 +2736,7 @@ int tty_connect(void)
|
|||
{
|
||||
while (true)
|
||||
{
|
||||
int ret = read(pipefd[0], &input_char, 1);
|
||||
int ret = read(pipefd[0], input_buffer, BUFSIZ);
|
||||
if (ret < 0)
|
||||
{
|
||||
tio_error_printf("Could not read from pipe (%s)", strerror(errno));
|
||||
|
|
@ -2745,7 +2745,7 @@ int tty_connect(void)
|
|||
else if (ret > 0)
|
||||
{
|
||||
// Forward to tty device
|
||||
ret = write_poll(device_fd, &input_char, 1, WRITE_POLL_FOREVER);
|
||||
ret = tty_write(device_fd, input_buffer, ret);
|
||||
if (ret < 0)
|
||||
{
|
||||
tio_error_printf("Could not write to serial device (%s)", strerror(errno));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue