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

avoid to override flags in case of multiple call of same service

parent 2d8df28e
No related branches found
No related tags found
No related merge requests found
......@@ -146,6 +146,7 @@ void sanitize_scandir(resolve_service_t *res)
char s[livelen + SS_SCANDIR_LEN + 1 + strlen(res->sa.s + res->ownerstr) + 1 + namelen + 1] ;
auto_strings(s, res->sa.s + res->live.livedir, SS_SCANDIR, "/", res->sa.s + res->ownerstr, "/", name) ;
log_trace("remove symlink: ", s) ;
unlink_void(s) ;
state_set_flag(&sta, STATE_FLAGS_ISSUPERVISED, STATE_FLAGS_FALSE) ;
......@@ -157,9 +158,8 @@ void sanitize_scandir(resolve_service_t *res)
if (svc_scandir_send(svcandir, "an") <= 0)
log_dieu(LOG_EXIT_SYS, "reload scandir: ", svcandir) ;
}
if (service_is(&sta, STATE_FLAGS_TORELOAD) == STATE_FLAGS_TRUE) {
} else if (service_is(&sta, STATE_FLAGS_TORELOAD) == STATE_FLAGS_TRUE) {
if (svc_scandir_send(svcandir, "a") <= 0)
log_dieu(LOG_EXIT_SYS, "reload scandir: ", svcandir) ;
......
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