mirror of git://git.suckless.org/ubase
No need to skip stdin in chvt(1)
This commit is contained in:
parent
d04d030367
commit
29bc0ce130
2
chvt.c
2
chvt.c
|
@ -41,7 +41,7 @@ main(int argc, char *argv[])
|
||||||
n = estrtol(argv[1], 10);
|
n = estrtol(argv[1], 10);
|
||||||
for (i = 0; i < LEN(vts); i++) {
|
for (i = 0; i < LEN(vts); i++) {
|
||||||
fd = open(vts[i], O_RDONLY);
|
fd = open(vts[i], O_RDONLY);
|
||||||
if (fd < 1)
|
if (fd < 0)
|
||||||
continue;
|
continue;
|
||||||
c = 0;
|
c = 0;
|
||||||
if (ioctl(fd, KDGKBTYPE, &c) == 0)
|
if (ioctl(fd, KDGKBTYPE, &c) == 0)
|
||||||
|
|
Loading…
Reference in New Issue