| 275 | |
| 276 | #if HAVE_SYSTEM |
| 277 | static void ShutdownNotify(const ArgsManager& args) |
| 278 | { |
| 279 | std::vector<std::thread> threads; |
| 280 | for (const auto& cmd : args.GetArgs("-shutdownnotify")) { |
| 281 | threads.emplace_back(runCommand, cmd); |
| 282 | } |
| 283 | for (auto& t : threads) { |
| 284 | t.join(); |
| 285 | } |
| 286 | } |
| 287 | #endif |
| 288 | |
| 289 | void Interrupt(NodeContext& node) |
no test coverage detected