tty: Use /dev/tty instead of tty0

dev
Kristian Høgsberg 14 years ago
parent 9ffb6b9866
commit c1ace8c465
  1. 2
      compositor/tty.c

@ -104,7 +104,7 @@ tty_create(struct wlsc_compositor *compositor, tty_vt_func_t vt_func)
memset(tty, 0, sizeof *tty); memset(tty, 0, sizeof *tty);
tty->compositor = compositor; tty->compositor = compositor;
tty->vt_func = vt_func; 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) { if (tty->fd <= 0) {
fprintf(stderr, "failed to open active tty: %m\n"); fprintf(stderr, "failed to open active tty: %m\n");
return NULL; return NULL;

Loading…
Cancel
Save