diff --git a/cmd/rmsn/rmsn.go b/cmd/rmsn/rmsn.go index e2c6df4..e767f40 100644 --- a/cmd/rmsn/rmsn.go +++ b/cmd/rmsn/rmsn.go @@ -34,6 +34,9 @@ func main() { s := <-c fmt.Printf("Got signal %s, exiting...\n", s) - srv.Close() + if err := srv.Close(); err != nil { + fmt.Fprintf(os.Stderr, "error closing server: %s", err) + os.Exit(1) + } <-closed }