mirror of
https://github.com/tio/tio.git
synced 2026-05-01 14:57:59 +02:00
Fixed disconnect output
In certain cases the disconnect message would eat a line of output from the tty device (if any). This is now fixed.
This commit is contained in:
parent
f371d01f3c
commit
9dfb1debaf
5 changed files with 73 additions and 128 deletions
|
|
@ -22,7 +22,6 @@
|
|||
#include <stdio.h>
|
||||
#include "gotty/options.h"
|
||||
#include "gotty/tty.h"
|
||||
#include "gotty/device.h"
|
||||
|
||||
int main(int argc, char *argv[])
|
||||
{
|
||||
|
|
@ -44,7 +43,7 @@ int main(int argc, char *argv[])
|
|||
{
|
||||
while (true)
|
||||
{
|
||||
wait_for_device();
|
||||
wait_for_tty_device();
|
||||
status = connect_tty();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue