Eric Pouech eric.pouech@orange.fr writes:
if (tcgetattr(fd, &term) < 0) fprintf(stderr, "Couldn't get termios\n");
console_input->termios = term;
term.c_lflag &= ~(ECHO | ECHONL | ICANON | IEXTEN);
term.c_iflag &= ~(BRKINT | ICRNL | INPCK | ISTRIP | IXON);
Errors need to be handled properly in the server, you can't just print a message and continue as if nothing happened.