patch-2.1.30 linux/drivers/char/vt.c
Next file: linux/drivers/char/wdt.c
Previous file: linux/drivers/char/tty_ioctl.c
Back to the patch index
Back to the overall index
- Lines: 24
- Date:
Tue Mar 18 12:18:42 1997
- Orig file:
v2.1.29/linux/drivers/char/vt.c
- Orig date:
Sun Jan 26 02:07:17 1997
diff -u --recursive --new-file v2.1.29/linux/drivers/char/vt.c linux/drivers/char/vt.c
@@ -58,7 +58,7 @@
extern int setkeycode(unsigned int scancode, unsigned int keycode);
extern void compute_shiftstate(void);
extern void complete_change_console(unsigned int new_console);
-extern int vt_waitactive(void);
+extern int vt_waitactive(int vt);
extern void do_blank_screen(int nopowersave);
extern unsigned int keymap_count;
@@ -807,13 +807,7 @@
return -EPERM;
if (arg == 0 || arg > MAX_NR_CONSOLES)
return -ENXIO;
- arg--;
- while (fg_console != arg)
- {
- if (vt_waitactive() < 0)
- return -EINTR;
- }
- return 0;
+ return vt_waitactive(arg-1);
/*
* If a vt is under process control, the kernel will not switch to it
FUNET's LINUX-ADM group, [email protected]
TCL-scripts by Sam Shen, [email protected]