lib/config_skeleton.rb in config_skeleton-0.2.6 vs lib/config_skeleton.rb in config_skeleton-0.3.0

- old
+ new

@@ -194,15 +194,16 @@ def initialize(env) super hook_signal(:HUP) do logger.info("SIGHUP") { "received SIGHUP, triggering config regeneration" } - regenerate_config(force_reload: true) + @trigger_regen_w << "." end initialize_config_skeleton_metrics @trigger_regen_r, @trigger_regen_w = IO.pipe + @terminate_r, @terminate_w = IO.pipe end # Expose the write pipe which can be written to to trigger a config # regeneration with a forced reload; a similar mechanism is used for # shutdown but in that case writes are managed internally. @@ -227,11 +228,9 @@ write_initial_config watch(*self.class.watches) logger.debug(logloc) { "notifier fd is #{notifier.to_io.inspect}" } - - @terminate_r, @terminate_w = IO.pipe loop do if ios = IO.select( [notifier.to_io, @terminate_r, @trigger_regen_r], [], [],