You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When running redis-cli as PID 1 (e.g. within a container), the process can only be killed with SIGKILL. This is because PID 1 ignores all signals not explicitly handled by the process, and redis-cli does not generally register its own signal handler (except when using --intrinsic-latency). This prevents the user from aborting long-running commands such as --scan and --stat.
Steps to reproduce
Run docker run -d redis:4 redis-cli -h $HOST --stat where $HOST is an active redis instance
Run docker ps to verify redis-cli is running.
Run docker kill -s INT $ID (where $ID is the container ID of the redis-cli container) to send the SIGINT signal to the redis-cli process.
Run docker ps
Expected result
The redis-cli container is no longer running.
Actual result
The redis-cli container is still running. If you attach to the container, you will see that the container did not react to the signal at all (it is still scanning).
Versions
Tested and verified on redis-cli version 4.0.8 and 2.8.23.
When running
redis-cli
as PID 1 (e.g. within a container), the process can only be killed with SIGKILL. This is because PID 1 ignores all signals not explicitly handled by the process, and redis-cli does not generally register its own signal handler (except when using--intrinsic-latency
). This prevents the user from aborting long-running commands such as--scan
and--stat
.Steps to reproduce
docker run -d redis:4 redis-cli -h $HOST --stat
where$HOST
is an active redis instancedocker ps
to verify redis-cli is running.docker kill -s INT $ID
(where$ID
is the container ID of the redis-cli container) to send the SIGINT signal to the redis-cli process.docker ps
Expected result
Actual result
Versions
Tested and verified on redis-cli version 4.0.8 and 2.8.23.
Proposed solution
The text was updated successfully, but these errors were encountered: