| 3264 | } |
| 3265 | |
| 3266 | void decom(char *host) |
| 3267 | { |
| 3268 | if (net_stop) { |
| 3269 | return; |
| 3270 | } |
| 3271 | if (strcmp(host, gbl_myhostname) == 0) { |
| 3272 | return; |
| 3273 | } |
| 3274 | struct host_info *h = host_info_find(host); |
| 3275 | if (h == NULL) { |
| 3276 | return; |
| 3277 | } |
| 3278 | logmsg(LOGMSG_USER, "%s host:%s\n", __func__, host); |
| 3279 | struct event_info *e; |
| 3280 | LIST_FOREACH(e, &h->event_list, host_list_entry) { |
| 3281 | if (e->decomissioned) continue; |
| 3282 | set_decom(e); |
| 3283 | do_close(e, send_decom_all); |
| 3284 | } |
| 3285 | } |
| 3286 | |
| 3287 | void stop_event_net(void) |
| 3288 | { |
no test coverage detected