projects
/
profile
/
ivi
/
weston-ivi-shell.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1201b75
)
tty: Close tty fd on exit
author
Kristian Høgsberg
<krh@bitplanet.net>
Sun, 15 Jan 2012 20:20:53 +0000
(15:20 -0500)
committer
Kristian Høgsberg
<krh@bitplanet.net>
Sun, 15 Jan 2012 20:25:05 +0000
(15:25 -0500)
src/tty.c
patch
|
blob
|
history
diff --git
a/src/tty.c
b/src/tty.c
index
d9fce08
..
bb979d3
100644
(file)
--- 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);
}