Skip to content
Snippets Groups Projects
Commit 7eca6663 authored by Eric Vidal's avatar Eric Vidal :speech_balloon:
Browse files

remove service from tree at disable time

parent cd1a2559
No related branches found
No related tags found
No related merge requests found
......@@ -104,14 +104,14 @@ int ssexec_disable(int argc, char const *const *argv, ssexec_t *info)
for (; n < argc ; n++) {
name_isvalid(argv[n]) ;
int aresid = service_resolve_array_search(ares, areslen, argv[n]) ;
if (aresid < 0)
log_die(LOG_EXIT_USER, "service: ", argv[n], " not available -- did you parse it?") ;
service_enable_disable(&graph, aresid, ares, areslen, 0, visit, propagate) ;
tree_service_remove(info->base.s, ares[aresid].sa.s + ares[aresid].treename, ares[aresid].sa.s + ares[aresid].name) ;
if (!sastr_add_string(&sa, argv[n]))
log_dieu(LOG_EXIT_SYS, "add string") ;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment