Do not create prop files for ctl.* properties

Change-Id: Ia6660c68c9e0cb89938751dbc0747ee038394778
This commit is contained in:
Tom Cherry 2015-12-04 15:53:25 -08:00
parent 0b40c13a5a
commit 21eadee6e9

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); });