When a connection was revoked (policy change or RuleExpires), revokeConn
only set an in-memory flag and immediately closed the transport,
deferring the monitor KillAll RPC to closeConnMonitor. Closing the
transport caused non-PTY session stdin to hit EOF so the session leader
could exit 0 and be reaped and deleted from the monitor's child table
before KillAll or Terminate arrived, leaving background jobs in the
leader's process group alive after monitor teardown.
Commit KillAll to the monitor in revokeConn before canceling sessions or
closing the transport, and prevent connMonitor from returning or
spawning a monitor once revocation has begun. In the monitor, have
handleKillAll begin termination on every current child immediately so
leaders stay pinned until SIGKILL even if they exit before Close, and
refuse new exec/dial/listen launches after KillAll.
Fixes#22915
Change-Id: Ia2df1647602051f395f6e2fe107150e6a938a37a
Signed-off-by: James Tucker <james@tailscale.com>