MCPcopy Create free account
hub / github.com/OpenHD/OpenHD / keep_alive_until_sigterm

Method keep_alive_until_sigterm

OpenHD/ohd_common/src/openhd_util.cpp:99–106  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

97}
98
99void OHDUtil::keep_alive_until_sigterm() {
100 static bool quit = false;
101 signal(SIGTERM, [](int sig) { quit = true; });
102 while (!quit) {
103 std::this_thread::sleep_for(std::chrono::seconds(1));
104 openhd::log::get_default()->debug("keep_alive_until_sigterm");
105 }
106}
107
108bool OHDUtil::is_valid_ip(const std::string& ip) {
109 unsigned char buf[sizeof(struct in6_addr)];

Callers

nothing calls this directly

Calls 1

debugMethod · 0.80

Tested by

no test coverage detected