mirror of
https://github.com/checkpoint-restore/criu.git
synced 2026-01-23 02:14:37 +00:00
tty: Drop TTY_SUBTYPE_SLAVE from /dev/console and /dev/tty
They are confusing code readers. Lets save these @subtypes for Unix98 pty peers where they are really important. Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org> Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
This commit is contained in:
parent
79ca3eec37
commit
4fd669fca6
1 changed files with 0 additions and 2 deletions
2
tty.c
2
tty.c
|
|
@ -182,7 +182,6 @@ static int open_simple_tty(struct tty_info *info);
|
|||
|
||||
static struct tty_driver console_driver = {
|
||||
.type = TTY_TYPE__CONSOLE,
|
||||
.subtype = TTY_SUBTYPE_SLAVE,
|
||||
.name = "console",
|
||||
.index = CONSOLE_INDEX,
|
||||
.open = open_simple_tty,
|
||||
|
|
@ -190,7 +189,6 @@ static struct tty_driver console_driver = {
|
|||
|
||||
static struct tty_driver ctty_driver = {
|
||||
.type = TTY_TYPE__CTTY,
|
||||
.subtype = TTY_SUBTYPE_SLAVE,
|
||||
.name = "ctty",
|
||||
.index = CTTY_INDEX,
|
||||
.open = open_simple_tty,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue