From c1ace8c465079b8d5fc8f60ba9f0f5078de62cfe Mon Sep 17 00:00:00 2001 From: =?utf8?q?Kristian=20H=C3=B8gsberg?= Date: Fri, 22 Jul 2011 07:25:21 -0700 Subject: [PATCH] tty: Use /dev/tty instead of tty0 --- compositor/tty.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compositor/tty.c b/compositor/tty.c index 229bd7e..e74f0eb 100644 --- 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/tty0", 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; -- 2.7.4