]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rgw: fix up signal handling
authorSage Weil <sage@inktank.com>
Sat, 27 Jul 2013 06:22:20 +0000 (23:22 -0700)
committerSage Weil <sage@inktank.com>
Sat, 27 Jul 2013 06:22:20 +0000 (23:22 -0700)
commit59b13cebee600dad2551d2c7dc3482b05eaf8b22
tree9b19ae128bf67a66e5469027eae6b761c34aa0b8
parentbd0e35f2e198b7a0683e185e4969a26488be8386
rgw: fix up signal handling

OMG libfcgi is annoying with shutdown and signals.  You need to close
the fd *and* resend a signal to ensure that you kick the accept loop
hard enough to make it shut down.

Document this, and switch to the async signal handlers.  Put them
tightly around the runtime loop as we do with other daemons.

Signed-off-by: Sage Weil <sage@inktank.com>
src/rgw/rgw_main.cc