Skip to content
  • Guido Trotter's avatar
    ConfdInotifyEventHandler, move to a callback · 4afe249b
    Guido Trotter authored
    
    
    ConfdInotifyEventHandler used to reload the config whenever a
    notification arrived. Moving to a callback system, so that
    ConfdConfigurationReloader can be responsible for that functionality.
    
    Additionally the inotify class no longer reenables itself automatically,
    but just notifies the callback if it's been disabled, and waits for its
    call to enable(). This allows, should ConfdConfigurationReloader decide
    it wants to move to polling, to avoid having a double enable()/disable()
    call.
    
    Signed-off-by: default avatarGuido Trotter <ultrotter@google.com>
    Reviewed-by: default avatarMichael Hanselmann <hansmi@google.com>
    4afe249b