diff options
author | 2016-08-30 17:15:26 +0000 | |
---|---|---|
committer | 2016-08-30 17:15:26 +0000 | |
commit | d7eabc2cc1a88c1f7f927da61246ae65aab0626c (patch) | |
tree | dc61a7fd80e1289777f6a991102b0fe4a2ef032d /runtime/utils.h | |
parent | 99fd9f39f2cd74864bdc750a3444ddd776da534c (diff) | |
parent | d106d9f871c957286ccdeb79c1c2a5ed41f859a6 (diff) |
Merge "Save environment snapshot and use at fork/exec"
Diffstat (limited to 'runtime/utils.h')
-rw-r--r-- | runtime/utils.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/runtime/utils.h b/runtime/utils.h index 693e0b87ee..843349277d 100644 --- a/runtime/utils.h +++ b/runtime/utils.h @@ -269,6 +269,9 @@ bool GetDalvikCacheFilename(const char* file_location, const char* cache_locatio std::string GetSystemImageFilename(const char* location, InstructionSet isa); // Wrapper on fork/execv to run a command in a subprocess. +// Both of these spawn child processes using the environment as it was set when the single instance +// of the runtime (Runtime::Current()) was started. If no instance of the runtime was started, it +// will use the current environment settings. bool Exec(std::vector<std::string>& arg_vector, std::string* error_msg); int ExecAndReturnCode(std::vector<std::string>& arg_vector, std::string* error_msg); |