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

am: 4ade5195f1

* commit '4ade5195f188b84ce3599c71ef058d040b141da4':
  Do not create prop files for ctl.* properties
This commit is contained in:
Tom Cherry 2015-12-05 00:27:56 +00:00 committed by android-build-merger
commit 071234cfd9

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