mirror of
https://git.keinpfusch.net/loweel/zorg
synced 2024-12-22 10:03:54 +01:00
18 lines
259 B
Go
18 lines
259 B
Go
package main
|
|
|
|
import (
|
|
"os"
|
|
"os/signal"
|
|
)
|
|
|
|
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, os.Kill)
|
|
<-c
|
|
os.Exit(0)
|
|
|
|
}
|