Skip to content

Process.parent() may swallow NoSuchProcess exceptions #606

Closed
@giampaolo

Description

...and return None instead. Problem is here:

if parent.create_time() <= self.create_time():

This is a race condition as the process may be alive at ppid = self.ppid() but not at self.create_time(). It's a very small time frame but the issues technically exists.

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions