rng-tools bug fix update
rng-tools bug fix update, addressing the following minor issues:
-
Improve interlock between main rngd thread, and jitterentropy threads during startup/shutdown to avoid deadlock/unneeded latency
-
Avoid writing to write_wakeup_threshold when no specific threshold is set (allowing for separate services to preform this task without warnings from rngd)
-
Enhance logging to more clearly indicate which entropy source is issuing a given log message
-
Daemonize earlier, thereby avoiding early thread exit, which in turn leads to additional latency on shutdown
-
Allow for immediate thread shutdown in jitter - By using sigsetjmp/siglongjmp, threads can exit, even when blocking in the jitter library