lib/daemon contains quite a few more code than is actually needed/used. this is a big simplification, that preserves all current functionality.
Guido Trotter (6): Remove timers from Mainloop Simplify IO waiting in Mainloop SignalHandler, only accept list of signals Add a new SignalHandled decorator Convert ganeti-masterd to @utils.SignalHandled Convert daemon.Mainloop to @SignalHandled daemons/ganeti-masterd | 14 ++-- lib/daemon.py | 245 +++++++---------------------------------------- lib/utils.py | 34 ++++++- 3 files changed, 73 insertions(+), 220 deletions(-)