From 21eadee6e97c08485c9ec52a8f44cabd4261bf4a Mon Sep 17 00:00:00 2001 From: Tom Cherry Date: Fri, 4 Dec 2015 15:53:25 -0800 Subject: [PATCH] Do not create prop files for ctl.* properties Change-Id: Ia6660c68c9e0cb89938751dbc0747ee038394778 --- libc/bionic/system_properties.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/libc/bionic/system_properties.cpp b/libc/bionic/system_properties.cpp index 9b44ff20d..b9a373eb9 100644 --- a/libc/bionic/system_properties.cpp +++ b/libc/bionic/system_properties.cpp @@ -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); }); -- 2.11.0