goldwarden/agent/defaultmainloop.go

18 lines
291 B
Go
Raw Normal View History

2023-12-22 10:02:23 +03:00
//go:build (!windows && !darwin && !linux) || noautofill
2023-09-20 19:00:00 +03:00
package agent
import (
"fmt"
"os"
"os/signal"
"syscall"
)
func mainloop() {
done := make(chan os.Signal, 1)
signal.Notify(done, syscall.SIGINT, syscall.SIGTERM)
fmt.Println("Blocking, press ctrl+c to continue...")
<-done
}