[CRIU] [PATCH] zdtm: one more test case for controlling terminals
Cyrill Gorcunov
gorcunov at openvz.org
Tue Mar 19 06:07:47 EDT 2013
On Tue, Mar 19, 2013 at 01:41:21PM +0400, Andrew Vagin wrote:
> Look at the attached patch. With it all tests pass.
>
> On Tue, Mar 19, 2013 at 09:56:21AM +0400, Cyrill Gorcunov wrote:
> > On Tue, Mar 19, 2013 at 01:42:56AM +0400, Andrey Vagin wrote:
> > > PID SID TT COMMAND
> > > 26748 26748 ? tty03
> > > 26749 26749 pts/2 \_ tty03
> > > 26750 26750 ? \_ tty03
> > >
> > > The second process has not a file descriptor for the ctl tty,
> > > but this tty is opened in tty03.
> > >
> > > Currently CRIU can not restore this test case correctly.
> >
> > Thanks, I'll take a look.
> diff --git a/tty.c b/tty.c
> index 251930b..4e1b6e9 100644
> --- a/tty.c
> +++ b/tty.c
> @@ -731,10 +731,10 @@ static int tty_find_restoring_task(struct tty_info *info)
> }
>
> if (info->tie->sid) {
> - if (pty_is_master(info)) {
> - if (tty_has_active_pair(info))
> - return 0;
> - }
> +// if (pty_is_master(info)) {
> +// if (tty_has_active_pair(info))
> +// return 0;
> +// }
>
> /*
> * Find out the task which is session leader
Still this fails on the tty03 test you've sent.
Cyrill
More information about the CRIU
mailing list