mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-09-22 22:31:28 +02:00
The ring watch flags (wait, seek end) were dangerously passed via ctx.cli.i0 from "show buf" in sink.c:cli_parse_show_events(), or implicitly reset in "show errors". That's very unconvenient, difficult to follow, and prone to short-term breakage. Let's pass an extra argument to ring_attach_cli() to take these flags, now defined in ring-t.h as RING_WF_*, and let the function set them itself where appropriate (still ctx.cli.i0 for now).