MCPcopy Create free account
hub / github.com/ceph/ceph / SignalHandler

Method SignalHandler

src/global/signal_handler.cc:485–494  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

483 ceph::mutex lock = ceph::make_mutex("SignalHandler::lock");
484
485 SignalHandler() {
486 // create signal pipe
487 int r = pipe_cloexec(pipefd, 0);
488 ceph_assert(r == 0);
489 r = fcntl(pipefd[0], F_SETFL, O_NONBLOCK);
490 ceph_assert(r == 0);
491
492 // create thread
493 create("signal_handler");
494 }
495
496 ~SignalHandler() override {
497 shutdown();

Callers

nothing calls this directly

Calls 2

pipe_cloexecFunction · 0.85
createFunction · 0.50

Tested by

no test coverage detected