Commits


opt-in some warnings


use the global verbose var so childs inherit the correct log level


drop attribute __bounded__ in vis.h it's not super-important, generates lots of warnings and seems to be absent in other copies of vis.h scattered on other OpenBSD -portable software (tmux for instance.)


main_imsg_compose_listener: use (peerid) 0 instead of imsg.hdr.pid it's wrong to pass the pid instead of the peerid and the peerid is not important anyway for the VERBOSE request.


client_send_listener: send correct peerid fix typo in previous commit where `0' was used instead of peerid. Spotted by cage, thanks!


tweak debug call


drop unnecessary debugging log


add kamictl debug: list open fids on every ongoing connection while here also fix the imsg retrival loop


add IMSG_CTL_DEBUG to debug the opened fid meant to be used from kamictl to dump all the opened fid by every connection.


kill stray line


listener: enable config reload


explicitly initializes queues with STAILQ_INIT


table_static_close: don't free kp->key (is stored inside kp)


cache listener flags in struct client this saves us from the small chance that a client accepted before reconf uses the flags from a listener post reconf.


fix restart in listener drop connections in the handshake phase: the listener from where they've been accepted is now being replaced and its id is no more meaningful. Clients for which we have already sent an auth request are kept.