Newer
Older
zorg / zorg.go
Loweel on 17 Aug 259 bytes First commit
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)

}