Skip to content

Commit 63dd199

Browse files
committed
Add comment explaining debug. propname prefix
1 parent b2fb2f4 commit 63dd199

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

stdlib/public/runtime/EnvironmentVariables.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,7 @@ extern "C" char **_environ;
196196
static void platformInitialize(void *context) {
197197
(void)context;
198198
char buffer[PROP_VALUE_MAX] = "";
199+
// Only system properties prefixed with "debug." can be set without root access.
199200
#define SYSPROP_PREFIX "debug.org.swift.runtime."
200201
#define VARIABLE(name, type, defaultValue, help) \
201202
if (__system_property_get(SYSPROP_PREFIX #name, buffer)) { \

0 commit comments

Comments
 (0)