Не могу понять, почему не работает setconsole, при передачи любого числа в качестве параметра, пишет "./setconsole: ioctl(stdin, TIOCLINUX): Invalid argument"
{78} Code example and 2nd paragraph;
The code example on this page returns "Invalid argument"
# ./setconsole 1
./setconsole: ioctl(stdin, TIOCLINUX): Invalid argument
Code correction: 11 is the TIOCL_SETKMSGREDIRECT cmd number
include/linux/tiocl.h:#define TIOCL_SETKMSGREDIRECT 11 /* restrict kernel
messages to a vt */
Also, drivers/char/vt.c explains TIOCLINUX, not tty_io.c
I'm still trying to figure out why it always returns EINVAL.
My kernel version is:
# uname -r
2.6.17-1.2174_FC5