C RC/CLI: honor both --rc-unix and --rc-host at the same time
With recent changes such as 493568b3 the CLI can now use as input both stdin and sockets at the same time, like the lua CLI would allow. Reading from stdin can even be explicitly enabled using --rc-fake-tty
, while the two available socket types are controlled by --rc-unix
and --rc-host
. Currently, --rc-host
is ignored if --rc-unix
is set. Instead, it would be more functional and semantically clearer if the CLI created and listened on both sockets when both options are set.
This is a refocused subset of #25203 (closed).