Commit 36e43e20 authored by Kirill Tkhai's avatar Kirill Tkhai Committed by Pavel Emelyanov

files: Use collect_gen_fd() in tty_collect_fd()

No functional changes; this just improves uniformity.
Signed-off-by: 's avatarKirill Tkhai <ktkhai@virtuozzo.com>
Signed-off-by: 's avatarPavel Emelyanov <xemul@virtuozzo.com>
parent c7eeef23
...@@ -1130,13 +1130,14 @@ static void tty_collect_fd(struct file_desc *d, struct fdinfo_list_entry *fle, ...@@ -1130,13 +1130,14 @@ static void tty_collect_fd(struct file_desc *d, struct fdinfo_list_entry *fle,
*/ */
if (tty_is_master(info) && info->driver->type != TTY_TYPE__CTTY) if (tty_is_master(info) && info->driver->type != TTY_TYPE__CTTY)
tgt = &ri->fds; collect_gen_fd(fle, ri);
else if (info->driver->type == TTY_TYPE__CTTY) else {
tgt = &ri->tty_ctty; if (info->driver->type == TTY_TYPE__CTTY)
else tgt = &ri->tty_ctty;
tgt = &ri->tty_slaves; else
tgt = &ri->tty_slaves;
list_add_tail(&fle->ps_list, tgt); list_add_tail(&fle->ps_list, tgt);
}
} }
static char *tty_d_name(struct file_desc *d, char *buf, size_t s) static char *tty_d_name(struct file_desc *d, char *buf, size_t s)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment