]> git.ipfire.org Git - thirdparty/haproxy.git/commit
[MEDIUM] pollers: don't wait if a signal is pending
authorWilly Tarreau <w@1wt.eu>
Sun, 10 May 2009 07:57:21 +0000 (09:57 +0200)
committerWilly Tarreau <w@1wt.eu>
Sun, 10 May 2009 07:57:21 +0000 (09:57 +0200)
commit332740dab2396f2451faa67dd349eacee4136825
tree36ad8aa8776b912854b429ceec64f76d5951d306
parent2985794ca9a7f924ea886e046d949c92261e7b4b
[MEDIUM] pollers: don't wait if a signal is pending

If an asynchronous signal is received outside of the poller, we don't
want the poller to wait for a timeout to occur before processing it,
so we set its timeout to zero, just like we do with pending tasks in
the run queue.
src/ev_epoll.c
src/ev_kqueue.c
src/ev_poll.c
src/ev_select.c
src/ev_sepoll.c