1. 01 May, 2012 1 commit
  2. 22 Mar, 2012 1 commit
    • Iustin Pop's avatar
      Rework exit model · 88a10df5
      Iustin Pop authored
      
      
      While updating the confd code, I realised that we have _lots_ of
      duplication in the exit model for the various programs.
      
      So this patch attempts to abstract all the exits via a couple of new
      functions; sorry for the somewhat big patch, but I hope the payoff is
      worth the change: the actual exit conditions are much clearer.
      
      Note that the patch (also) moves the exitIfBad function to Utils.hs,
      since that is more logical.
      Signed-off-by: default avatarIustin Pop <iustin@google.com>
      Reviewed-by: default avatarGuido Trotter <ultrotter@google.com>
      88a10df5
  3. 20 Mar, 2012 1 commit
  4. 13 Mar, 2012 1 commit
    • Iustin Pop's avatar
      htools: add confd server module · 358a0a8f
      Iustin Pop authored
      
      
      This contains a more-or-less complete implementation for the
      server-side confd.
      
      Note that most of the code is behaving identical to the Python code,
      with a notable exception: the asyncore/inotify code was changed (since
      Haskell doesn't have asyncore) to 3-thread system. While otherwise I
      tried to keep the code flow identical, I found the original Python
      code not easily to reason about, and as such I changed the
      architecture in this regard.
      Signed-off-by: default avatarIustin Pop <iustin@google.com>
      Reviewed-by: default avatarGuido Trotter <ultrotter@google.com>
      358a0a8f