Skip to content

Adjust how we deal with pending signals when stopping threads on Linux #124

@gabrielesvelto

Description

@gabrielesvelto

I was looking through this patch in Google Breakpad, and it changes how they wait for a thread to be stopped after attaching to it via ptrace(). In short, there might be a race between the SIGSTOP signal sent when suspending a thread and what we get in the following waitpid(). The different signals that might fall between the two syscalls can get lost, and the thread won't behave correctly once resumed, as it will eventually be stopped again.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions