mesh_driver/lunix-attach.c
static int tty_restore(void)
{
	int ret;
	struct termios tty;

	tty = tty_before;
  	(void) tty_set_speed(&tty, "0");
	if ((ret = tty_set_state(&tty)) < 0) {
		fprintf(stderr, "slattach: tty_restore: %s\n",
			strerror(-ret));
		return ret;
	}
  	
	return 0;
}
/* Restore the TTY to its previous state. */
Restore the TTY to its previous state.
Restore the TTY to its previous state .
static int tty_restore(void)
{
	int ret;
	struct termios tty;
	tty = tty_before;
  	(void) tty_set_speed(&tty, "0");
	if ((ret = tty_set_state(&tty)) < 0) {
		fprintf(stderr, "slattach: tty_restore: %s\n",
			strerror(-ret));
		return ret;
	}
	return 0;
}
static int tty_restore ( void ) { int ret ; struct termios tty ; tty = tty_before ; ( void ) tty_set_speed ( & tty , " " ) ; if ( ( ret = tty_set_state ( & tty ) ) < 0 ) { fprintf ( stderr , " \n " , strerror ( - ret ) ) ; return ret ; } return 0 ; }
Restore the TTY to its previous state.
Restore the TTY to its previous state .