9p: clean up /tmp/ollie/$id on session kill

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Levi Neely 2026-04-14 19:25:56 +02:00
parent 52bb97973a
commit 0101f81dd2
1 changed files with 1 additions and 0 deletions

View File

@ -1389,6 +1389,7 @@ func (s *Server) killSession(id string) {
s.mu.Unlock()
if sess != nil {
sess.cancel()
os.RemoveAll("/tmp/ollie/" + id) //nolint:errcheck
fmt.Fprintf(os.Stderr, "olliesrv: killed session %s\n", id)
}
}