| 628 | static std::map<int, proxy_t> running_proxies; |
| 629 | |
| 630 | void stop_proxy(int port) |
| 631 | { |
| 632 | auto const it = running_proxies.find(port); |
| 633 | |
| 634 | if (it == running_proxies.end()) return; |
| 635 | |
| 636 | std::printf("stopping proxy on port %d\n", port); |
| 637 | |
| 638 | stop_process(it->second.pid); |
| 639 | running_proxies.erase(it); |
| 640 | } |
| 641 | |
| 642 | void stop_all_proxies() |
| 643 | { |