tty: Close tty fd on exit

dev
Kristian Høgsberg 13 years ago
parent 1201b75bec
commit 00513ab7cc
  1. 2
      src/tty.c

@ -185,5 +185,7 @@ tty_destroy(struct tty *tty)
fprintf(stderr,
"could not restore terminal to canonical mode\n");
close(tty->fd);
free(tty);
}

Loading…
Cancel
Save