flush log on shutdown

This commit is contained in:
Levi Neely 2026-04-15 18:19:59 +02:00
parent f478f7545c
commit cb00afb8bd
1 changed files with 2 additions and 0 deletions

View File

@ -13,6 +13,7 @@ import (
"9fans.net/go/plan9/client"
p9 "olliesrv/internal/p9"
olog "ollie/pkg/log"
)
const serviceName = "ollie"
@ -186,4 +187,5 @@ func runServer(sockPath, pidPath string) {
listener.Close() //nolint:errcheck
os.Remove(sockPath)
os.Remove(pidPath)
olog.Flush()
}