]> git.kaiwu.me - haproxy.git/commit
MINOR: cli: add "kill" CLI command
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Wed, 4 Nov 2026 14:10:15 +0000 (15:10 +0100)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Mon, 9 Nov 2026 16:24:37 +0000 (17:24 +0100)
commit2ffbf71d816ae62770ec3319a531ed7f57ebda13
tree51b0d28176ca29fc581c3fc62e96d42505a904e9
parent16e86dae4bfa3731200bd9d8b998ba0d93617b29
MINOR: cli: add "kill" CLI command

Implements a new "kill" admin CLI command. This allows stopping other
running commands.

This patch is implemented in two parts. First, the "kill" parser, which
loops over CLI jobs and sets the CLI_CMD_FL_KILLED flag on the targeted
ones.

The other change is in cli_io_handler() so that each targeted job reacts
to the CLI_CMD_FL_KILLED flag. If set, normal CLI flow is interrupted
and the io_release handler is called. Any release pending message is
suppressed and "Killed." is displayed to notify the user.

Currently, "kill" can only stop uninterruptible commands. This must
still be specified as a mandatory argument to support future extensions
of the command.
doc/management.txt
include/haproxy/cli-t.h
src/cli.c