projects
/
platform
/
upstream
/
weston.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9ffb6b9
)
tty: Use /dev/tty instead of tty0
author
Kristian Høgsberg
<krh@bitplanet.net>
Fri, 22 Jul 2011 14:25:21 +0000
(07:25 -0700)
committer
Kristian Høgsberg
<krh@bitplanet.net>
Fri, 22 Jul 2011 14:25:21 +0000
(07:25 -0700)
compositor/tty.c
patch
|
blob
|
history
diff --git
a/compositor/tty.c
b/compositor/tty.c
index
229bd7e
..
e74f0eb
100644
(file)
--- a/
compositor/tty.c
+++ b/
compositor/tty.c
@@
-104,7
+104,7
@@
tty_create(struct wlsc_compositor *compositor, tty_vt_func_t vt_func)
memset(tty, 0, sizeof *tty);
tty->compositor = compositor;
tty->vt_func = vt_func;
- tty->fd = open("/dev/tty
0
", O_RDWR | O_NOCTTY);
+ tty->fd = open("/dev/tty", O_RDWR | O_NOCTTY);
if (tty->fd <= 0) {
fprintf(stderr, "failed to open active tty: %m\n");
return NULL;