Commit c9a22844 authored by Cyrill Gorcunov's avatar Cyrill Gorcunov Committed by Pavel Emelyanov

tty: Save @flags unconditionaly for consistency

For easier reading: we need it for pty queued data only,
but this way the code is simplier.
Signed-off-by: 's avatarCyrill Gorcunov <gorcunov@openvz.org>
Signed-off-by: 's avatarPavel Emelyanov <xemul@virtuozzo.com>
parent d697415e
......@@ -1660,6 +1660,7 @@ static int dump_tty_info(int lfd, u32 id, const struct fd_parms *p, struct tty_d
dinfo->pgrp = pti->pgrp;
dinfo->fd = p->fd;
dinfo->driver = driver;
dinfo->flags = p->flags;
if (is_pty(driver)) {
dinfo->lfd = dup(lfd);
......@@ -1669,7 +1670,6 @@ static int dump_tty_info(int lfd, u32 id, const struct fd_parms *p, struct tty_d
return -1;
}
dinfo->index = index;
dinfo->flags = p->flags;
} else {
dinfo->index = -1;
dinfo->lfd = -1;
......
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