diff options
Diffstat (limited to 'cmd')
-rw-r--r-- | cmd/rr/cmd/serve.go | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/cmd/rr/cmd/serve.go b/cmd/rr/cmd/serve.go index 4ae2a9d9..dc751611 100644 --- a/cmd/rr/cmd/serve.go +++ b/cmd/rr/cmd/serve.go @@ -40,7 +40,10 @@ func init() { } func serveHandler(cmd *cobra.Command, args []string) error { - go Container.Serve() + go func() { + Container.Serve() + stopSignal <- nil + }() <-stopSignal Container.Stop() |