Skip to content

Instantly share code, notes, and snippets.

--- src/ck-sysdeps-unix.c.orig 2022-08-26 23:08:43 UTC
+++ src/ck-sysdeps-unix.c
@@ -328,7 +328,7 @@ ck_get_a_console_fd (void)
}
#endif
-
+#if 0
#ifdef _PATH_TTY
fd = ck_open_a_console (_PATH_TTY);
#include <sys/ioctl.h>
#include <unistd.h>
#include <sys/consio.h>
#include <fcntl.h>
int main() {
int fd = open("/dev/console", O_WRONLY | O_NOCTTY);
ioctl(fd,VT_ACTIVATE,3);
close(fd);
}