This is broken for me, see comments below.
> + /* tty will be deinitialized by child process, so it has to be
> +* opened again to correctly cleanup vt handling. */
> + if (wl->tty != STDIN_FILENO) {
> + close(wl->tty);
> + wl->tty = open(wl->tty_p
From: Mateusz Polrola
After weston-launch is executing weston it cannot close TTY file,
because it is still required to properly handle SIGUSR1 and SIGUSR2
signals that are used for switching TTY.
Additionally after opening TTY it has to be activated, so that user
don't have to manually switch t