[CRIU] [PATCH 7/9] tty: Implement support of current tty
Cyrill Gorcunov
gorcunov at gmail.com
Fri Mar 13 06:52:49 PDT 2015
On Fri, Mar 13, 2015 at 02:41:06PM +0300, Pavel Emelyanov wrote:
> > @@ -1025,6 +1026,21 @@ int prepare_fds(struct pstree_item *me)
> > break;
> > }
> >
> > + for (state = 0; state < ARRAY_SIZE(states); state++) {
> > + if (!states[state].required) {
> > + pr_debug("Skipping %s fd stage\n", states[state].name);
> > + continue;
> > + }
> > +
> > + /*
> > + * Opening current TTYs require session to be already set up,
> > + * thus slave peers already handled now it's time for cttys,
>
> IOW the /dev/tty should only be ->open-ed after the respective tty's ->post_open?
yes, only when session is restored. did I miss something on file handling?
Cyrill
More information about the CRIU
mailing list