| 165 | } |
| 166 | |
| 167 | void UnregisterHandlers() { |
| 168 | std::lock_guard<std::mutex> lock(mutex_); |
| 169 | self_pipe_ptr_.store(nullptr); |
| 170 | auto handlers = std::move(saved_handlers_); |
| 171 | for (const auto& h : handlers) { |
| 172 | ARROW_CHECK_OK(SetSignalHandler(h.signum, h.handler)); |
| 173 | } |
| 174 | } |
| 175 | |
| 176 | ~SignalStopState() { |
| 177 | atfork_handler_.reset(); |
no test coverage detected