]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
global/signal_handler: use poll(2) instead of select(2)
authorSage Weil <sage@inktank.com>
Wed, 24 Jul 2013 04:27:50 +0000 (21:27 -0700)
committerSage Weil <sage@inktank.com>
Wed, 24 Jul 2013 04:27:50 +0000 (21:27 -0700)
commit8e4a78f169eda716c7d6811cb6db5c757dc67207
tree73b4dad0245ca76055bcb8002dd8b5b024579747
parent4183b74b00b5cddcac3d0de96cff231162f1fe3c
global/signal_handler: use poll(2) instead of select(2)

Starting with commit 61a298c39c1a6684682e2b749e45a66d073182c8 we delay the
signal handler setup until after lots of other initialization has happened,
which can result in us having very large (>1024) open fds, which will
break the FD_SET macros for select(2).  Use poll(2) instead.

Fixes: #5722
Signed-off-by: Sage Weil <sage@inktank.com>
Reviewed-by: Yehuda Sadeh <yehuda@inktank.com>
src/global/signal_handler.cc
src/test/signals.cc