ceph/src/global
Alan Somers 6641273b19 SignalHandler: fix infinite loop on BSD systems
SignalHandler::entry shouldn't poll for POLLOUT, because it never actually
writes to the pipes in question. Polling for POLLOUT causes poll(2) to
immediately return, so the function spins the CPU and never blocks. Remove
the POLLOUT flag, unnecessarily introduced in commit
8e4a78f169 when switching from select() to poll().

This fixes the problem on FreeBSD and doesn't break anything (AFAICT) on
Linux. Tested on FreeBSD 9.1 amd64 and Ubuntu Server 13.04 amd64.

Fixes: #6492

Signed-off-by: Alan Somers <asomers@gmail.com>
Reviewed-by: Greg Farnum <greg@inktank.com>
2013-10-14 11:14:44 -07:00
..
global_context.cc
global_context.h
global_init.cc
global_init.h
Makefile.am automake cleanup: implementing non-recursive make 2013-09-08 00:11:09 +02:00
pidfile.cc
pidfile.h
signal_handler.cc SignalHandler: fix infinite loop on BSD systems 2013-10-14 11:14:44 -07:00
signal_handler.h