summaryrefslogtreecommitdiff
path: root/src/tty.c
diff options
context:
space:
mode:
authorKristian Høgsberg <krh@bitplanet.net>2012-01-15 15:20:53 -0500
committerKristian Høgsberg <krh@bitplanet.net>2012-01-15 15:25:05 -0500
commit00513ab7ccb892aa71653b1e799466d85fd370db (patch)
treee520fd1007df3647b6117e4d144d755d63943195 /src/tty.c
parent1201b75bec3404a7e250b21928fe748e2d51813a (diff)
downloadweston-00513ab7ccb892aa71653b1e799466d85fd370db.tar.gz
weston-00513ab7ccb892aa71653b1e799466d85fd370db.tar.bz2
weston-00513ab7ccb892aa71653b1e799466d85fd370db.zip
tty: Close tty fd on exit
Diffstat (limited to 'src/tty.c')
-rw-r--r--src/tty.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/tty.c b/src/tty.c
index d9fce085..bb979d3a 100644
--- a/src/tty.c
+++ b/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);
}