]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
crimson/osd: use stop_signal from seastar
authorKefu Chai <kchai@redhat.com>
Wed, 16 Jun 2021 16:04:37 +0000 (00:04 +0800)
committerKefu Chai <kchai@redhat.com>
Wed, 16 Jun 2021 17:13:24 +0000 (01:13 +0800)
commita1d5ded9937d6166f4023ecafab0a084dcd0ed29
tree26328afe6cd79f2cc8437379c153ff517e7247bc
parent11c439d5f036a248c33ee2822a20ff7eeb43bade
crimson/osd: use stop_signal from seastar

and disable app_cfg.auto_handle_sigint_sigterm, otherwise app template
handles SIGINT and SIGTERM by itself, and calls app.stop(). but we don't
use this mechinary at all. we use seastar::defer() instead of
seastar::at_exit() for doing graceful shutdown and cleanup.

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/crimson/osd/CMakeLists.txt
src/crimson/osd/main.cc
src/crimson/osd/stop_signal.cc [deleted file]
src/crimson/osd/stop_signal.h [deleted file]