Albirew/nyaa-pantsu
Archivé
1
0
Bifurcation 0
Graphe des révisions

5 commits

Auteur SHA1 Message Date
John Smith
8a5c4543f8
Less code. 2017-05-28 19:57:12 +10:00
John Smith
92c92e09c1
Prevent race condition.
It is possible for an os.Interrupt signal to be raised after
signals.RegisterCloser() and before startup of goroutine signals.Handle().

Race is prevented by synchronously calling signal.Notify().
2017-05-28 19:57:07 +10:00
PantsuDev
70f87e7aac finish repo transfer 2017-05-17 15:58:40 +10:00
Jeff Becker
73f77f1624 properly handle os.Interrupt Signal
This makes systemd not put unit into fail mode when stopping

INFO:

* make sure to use signals.RegisterCloser for everything that should be closed on interrupt

* for any net.Listeners created make sure to wrap them with network.WrapListener and register with signals.RegisterCloser
2017-05-10 08:23:29 -04:00
Jeff Becker
1e567c74ca wire up signal handlers for sighup 2017-05-07 08:07:20 -04:00