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).
SIGINT (2)should be respected when waitingbrPop()(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).