~ubuntu-branches/ubuntu/saucy/haproxy/saucy

« back to all changes in this revision

Viewing changes to src/ev_epoll.c

  • Committer: Package Import Robot
  • Author(s): Vincent Bernat, Apollon Oikonomopoulos, Vincent Bernat, Prach Pongpanich
  • Date: 2013-05-06 20:02:14 UTC
  • mfrom: (1.3.1)
  • mto: This revision was merged to the branch mainline in revision 18.
  • Revision ID: package-import@ubuntu.com-20130506200214-36s6p81fsa5zqybt
[ Apollon Oikonomopoulos ]
* New upstream version (Closes: #643650, #678953)
   + This fixes CVE-2012-2942 (Closes: #674447)
   + This fixes CVE-2013-1912 (Closes: #704611)
* Ship vim addon as vim-haproxy (Closes: #702893)
* Check for the configuration file after sourcing /etc/default/haproxy
  (Closes: #641762)
* Use /dev/log for logging by default (Closes: #649085)

[ Vincent Bernat ]
* debian/control:
   + add Vcs-* fields
   + switch maintenance to Debian HAProxy team. (Closes: #706890)
   + drop dependency to quilt: 3.0 (quilt) format is in use.
* debian/rules:
   + don't explicitly call dh_installchangelog.
   + use dh_installdirs to install directories.
   + use dh_install to install error and configuration files.
   + switch to `linux2628` Makefile target for Linux.
* debian/postrm:
   + remove haproxy user and group on purge.
* Ship a more minimal haproxy.cfg file: no `listen` blocks but `global`
  and `defaults` block with appropriate configuration to use chroot and
  logging in the expected way.

[ Prach Pongpanich ]
* debian/copyright:
   + add missing copyright holders
   + update years of copyright
* debian/rules:
   + build with -Wl,--as-needed to get rid of unnecessary depends
* Remove useless files in debian/haproxy.{docs,examples}
* Update debian/watch file, thanks to Bart Martens

Show diffs side-by-side

added added

removed removed

Lines of Context:
194
194
REGPRM1 static void __fd_rem(int fd)
195
195
{
196
196
        uint32_t ofs = FD2OFS(fd);
197
 
 
198
 
        if (unlikely(!((fd_evts[ofs] >> FD2BIT(fd)) & 3)))
 
197
        uint32_t old_evt;
 
198
 
 
199
        old_evt = fd_evts[ofs] >> FD2BIT(fd);
 
200
        old_evt &= 3;
 
201
 
 
202
        if (unlikely(!old_evt))
199
203
                return;
200
204
 
201
 
        alloc_chg_list(fd, 0);
 
205
        alloc_chg_list(fd, old_evt);
202
206
        fd_evts[ofs] &= ~FD2MSK(fd);
203
207
        return;
204
208
}
245
249
                        wait_time = MAX_DELAY_MS;
246
250
        }
247
251
 
248
 
        fd = MIN(maxfd, global.tune.maxpollevents);
249
 
        status = epoll_wait(epoll_fd, epoll_events, fd, wait_time);
 
252
        status = epoll_wait(epoll_fd, epoll_events, global.tune.maxpollevents, wait_time);
250
253
        tv_update_date(wait_time, status);
251
254
 
252
255
        for (count = 0; count < status; count++) {