1
0
mirror of https://git.keinpfusch.net/loweel/zorg synced 2024-12-18 15:08:42 +01:00
zorg/zorg.go
2023-07-15 00:25:03 +02:00

19 lines
278 B
Go

package main
import (
"os"
"os/signal"
"syscall"
)
func main() {
// Just a nice way to wait until the Operating system sends a kill signal.
// select{} was just horrible.
c := make(chan os.Signal, 1)
signal.Notify(c, os.Interrupt, syscall.SIGTERM)
<-c
os.Exit(0)
}