Skip to content

Instantly share code, notes, and snippets.

@vsrinivas vsrinivas/vtypanic.c
Created Jan 29, 2013

What would you like to do?
#include <sys/types.h>
#include <sys/consio.h>
#include <sys/ioctl.h>
#include <stdio.h>
#include <fcntl.h>
main() {
int fd;
int rc;
fd = open("/dev/console", O_RDWR);
rc = ioctl(fd, VT_WAITACTIVE, 9);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.