Changeset e218b2e668e2669ac1172a80f29dcece78664779

Show
Ignore:
Timestamp:
04/25/08 21:19:49 (7 years ago)
Author:
Theo Schlossnagle <jesus@omniti.com>
git-committer:
Theo Schlossnagle <jesus@omniti.com> 1209158389 +0000
git-parent:

[4be21f8e99fb918f5a8e4445dd3753a53eba9a72]

git-author:
Theo Schlossnagle <jesus@omniti.com> 1209158389 +0000
Message:

epoll eventer implementation

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • src/eventer/eventer_impl.c

    r4b96846 re218b2e  
    1313extern struct _eventer_impl eventer_kqueue_impl; 
    1414#endif 
     15#ifdef HAVE_EPOLL 
     16extern struct _eventer_impl eventer_epoll_impl; 
     17#endif 
    1518 
    1619eventer_impl_t registered_eventers[] = { 
    1720#ifdef HAVE_KQUEUE 
    1821  &eventer_kqueue_impl, 
     22#endif 
     23#ifdef HAVE_EPOLL 
     24  &eventer_epoll_impl, 
    1925#endif 
    2026  NULL 
  • src/noit.conf

    r5789b04 re218b2e  
    11<?xml version="1.0" encoding="utf8" standalone="yes"?> 
    22<noit> 
    3   <eventer implementation="kqueue"
     3  <eventer
    44    <config> 
    55      <default_queue_threads>10</default_queue_threads> 
  • src/noit_conf.c

    r5789b04 re218b2e  
    3939   * PLEASE: keep them alphabetically sorted. 
    4040   */ 
     41  { "/%s/eventer/@implementation", DEFAULT_EVENTER }, 
    4142  { "/%s/modules/@directory", MODULES_DIR }, 
    4243 
     
    269270    switch(pobj->type) { 
    270271      case XPATH_NODESET: 
    271         if(xmlXPathNodeSetIsEmpty(pobj->nodesetval)) return 0
     272        if(xmlXPathNodeSetIsEmpty(pobj->nodesetval)) goto fallback
    272273        i = xmlXPathNodeSetGetLength(pobj->nodesetval); 
    273274        node = xmlXPathNodeSetItem(pobj->nodesetval, i-1); 
     
    280281    goto found; 
    281282  } 
     283 fallback: 
    282284  if(noit_hash_retrieve(&_compiled_fallback, 
    283285                        path, strlen(path), (void **)&str)) { 
  • src/noit_config.h.in

    ra504323 re218b2e  
    3939#undef MODULEEXT 
    4040#undef MODULES_DIR 
     41#undef DEFAULT_EVENTER 
    4142#undef ETC_DIR 
    4243 
     
    9899/* Kernel kqueue() support */ 
    99100#undef HAVE_KQUEUE 
     101/* Kernel epoll_create() support */ 
     102#undef HAVE_EPOLL 
    100103 
    101104/* The number of bytes in a char.  */