Skip to content

Question about the judgment in tty_verify_ctty #2678

@ifishland

Description

@ifishland

In the tty_verify_ctty function, if (n->pid_real != d->pid_real), then checkpoint fails. Why is this check necessary? A process that opens the ctty does not necessarily open the corresponding pts, and it can be allowed to be a different process. Moreover, it can also be correctly handled during restore. Therefore, I don't quite understand the scenario for this check.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions