| 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(); |
nothing calls this directly
no test coverage detected