Merge "Do not create prop files for ctl.* properties"

This commit is contained in:
Tom Cherry 2015-12-05 00:21:46 +00:00 committed by Gerrit Code Review
commit 4ade5195f1

View File

@ -915,6 +915,16 @@ static bool initialize_properties() {
free(prop_prefix);
continue;
}
/*
* init uses ctl.* properties as an IPC mechanism and does not write them
* to a property file, therefore we do not need to create property files
* to store them.
*/
if (!strncmp(prop_prefix, "ctl.", 4)) {
free(prop_prefix);
free(context);
continue;
}
auto old_context = list_find(
contexts, [context](context_node* l) { return !strcmp(l->context, context); });