Merge "Do not create prop files for ctl.* properties"
diff --git a/libc/bionic/system_properties.cpp b/libc/bionic/system_properties.cpp
index 9b44ff2..b9a373e 100644
--- a/libc/bionic/system_properties.cpp
+++ b/libc/bionic/system_properties.cpp
@@ -915,6 +915,16 @@
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); });