mirror of
https://github.com/quexten/goldwarden.git
synced 2024-12-18 16:11:31 +03:00
18 lines
291 B
Go
18 lines
291 B
Go
//go:build (!windows && !darwin && !linux) || noautofill
|
|
|
|
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
|
|
}
|