CVSROOT: /cvs Module name: src Changes by: d...@cvs.openbsd.org 2023/01/05 19:39:59
Modified files: usr.bin/ssh : channels.c channels.h clientloop.c mux.c session.c session.h ssh.c Log message: Add channel_force_close() This will forcibly close an open channel by simulating read/write errors, draining the IO buffers and calling the detach function. Previously the detach function was only ever called during channel garbage collection, but there was no way to signal the user of a channel (e.g. session.c) that its channel was being closed deliberately (vs. by the usual state-machine logic). So this adds an extra "force" argument to the channel cleanup callback to indicate this condition. ok markus dtucker