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:
Martin Lund 2014-09-30 01:18:29 +02:00
parent f371d01f3c
commit 9dfb1debaf
5 changed files with 73 additions and 128 deletions

View file

@ -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();
}
}