mirror of
https://github.com/tio/tio.git
synced 2026-05-01 14:57:59 +02:00
Merge d1271c8612 into 6fb3a64ba2
This commit is contained in:
commit
e5cc23f85e
1 changed files with 2 additions and 1 deletions
|
|
@ -2639,7 +2639,7 @@ int tty_connect(void)
|
||||||
else if (ret > 0)
|
else if (ret > 0)
|
||||||
{
|
{
|
||||||
// Forward to tty device
|
// Forward to tty device
|
||||||
ret = write(device_fd, &input_char, 1);
|
ret = tty_write(device_fd, &input_char, 1);
|
||||||
if (ret < 0)
|
if (ret < 0)
|
||||||
{
|
{
|
||||||
tio_error_printf("Could not write to serial device (%s)", strerror(errno));
|
tio_error_printf("Could not write to serial device (%s)", strerror(errno));
|
||||||
|
|
@ -2668,6 +2668,7 @@ int tty_connect(void)
|
||||||
// Exit if piped input
|
// Exit if piped input
|
||||||
if (interactive_mode == false)
|
if (interactive_mode == false)
|
||||||
{
|
{
|
||||||
|
tty_sync(device_fd);
|
||||||
exit(EXIT_SUCCESS);
|
exit(EXIT_SUCCESS);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue