[CRIU] Re: [PATCH 09/10] tty: Introduce deferred dumping of tty peers

Pavel Emelyanov xemul at parallels.com
Fri Oct 26 16:15:23 EDT 2012


> Thus when we start dumping ptmx peer (which belongs to SCREEN)
> we've not yet constructed the process tree item for children
> (ie /bin/bash) and the lookup function in tty code (which walks
> over all process items in a tree) simply fails to find sid of
> child, because we've not yet dumped it.

Are we talking about this code

        if (pti->sid) {
                struct pstree_item *item = find_first_sid(pti->sid);
                if (!item || item->pid.virt != pti->sid) {
                        if (!opts.shell_job) {
                                pr_err("Found sid %d pgid %d on slave peer fd %d. "
                                       "Missing option?\n",
                                       pti->sid, pti->pgrp, p->fd);
                                return -1;
                        }
                }
        }

in dump_pty_info? The find_first_sid() finds nothing, right?


More information about the CRIU mailing list