Changeset 860

Show
Ignore:
Timestamp:
06/23/06 16:49:14 (7 years ago)
Author:
ahu
Message:

fix for epoll on debian default 2.6.8 kernel, found & suggested by Christof Meerwald

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/pdns/pdns/epollmplexer.cc

    r759 r860  
    9595    throw FDMultiplexerException("Tried to remove unlisted fd "+lexical_cast<string>(fd)+ " from multiplexer"); 
    9696 
    97   if(epoll_ctl(d_epollfd, EPOLL_CTL_DEL, fd, 0) < 0) 
     97  struct epoll_event dummy; 
     98  dummy.events = 0; 
     99  dummy.data.u64 = 0; 
     100 
     101  if(epoll_ctl(d_epollfd, EPOLL_CTL_DEL, fd, &dummy) < 0) 
    98102    throw FDMultiplexerException("Removing fd from epoll set: "+stringerror()); 
    99103}