Introduce Satan

This commit is contained in:
2015-10-14 04:11:29 +03:00
parent 583ac5da5b
commit a2bfadfa66
3 changed files with 99 additions and 7 deletions
+2 -2
View File
@@ -21,8 +21,8 @@ func main() {
s := satan.Summon()
s.AddDaemon(&daemons.NumberPrinter{})
s.Start()
defer s.Stop()
s.StartDaemons()
defer s.StopDaemons()
sig := make(chan os.Signal)
signal.Notify(sig, os.Interrupt)