goldwarden/agent/defaultmainloop.go
2023-09-20 06:07:54 +02:00

18 lines
275 B
Go

//go:build !windows && !darwin && !linux
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
}