projects
/
winnie
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
*in progress*
[winnie]
/
src
/
keyboard.cc
diff --git
a/src/keyboard.cc
b/src/keyboard.cc
index
810607a
..
1b23e12
100644
(file)
--- a/
src/keyboard.cc
+++ b/
src/keyboard.cc
@@
-62,9
+62,11
@@
void destroy_keyboard()
}
ttystate = CANONICAL;
- close(dev_fd);
- dev_fd = -1;
+ if(dev_fd != -1) {
+ close(dev_fd);
+ dev_fd = -1;
+ }
}
int get_keyboard_fd()