Skip to content

SIGINT ignored in brPop() #2839

Description

@meglio

SIGINT (2) should be respected when waiting brPop() (or similar method) to respond. Right now, calling from a command line php script with an empty list by the key provided:

brPop(..., 0)

...will forever freeze the script (Ctrl+C won't work in the terminal).

However, in my master (caller) script, if I call pcntl_async_signals(true);, signals should interrupt the server-blocking wait and return some type that indicates the wait was interrupted by a signal (and which one).

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