Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(557)

Unified Diff: runtime/bin/process.dart

Issue 10166029: Support passing an environment variable map to child processes. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « runtime/bin/process.cc ('k') | runtime/bin/process_impl.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/process.dart
diff --git a/runtime/bin/process.dart b/runtime/bin/process.dart
index dfe9ae9da0de90196b52b7825f0581ae245ce1e9..182c39daea8412bbd291bc15840acebe47b494df 100644
--- a/runtime/bin/process.dart
+++ b/runtime/bin/process.dart
@@ -141,6 +141,16 @@ class ProcessOptions {
* The default stderrEncoding is UTF_8.
*/
Encoding stderrEncoding;
+
+ /**
+ * Provides the environment variables for the process. If not set
+ * the environment of the parent process is inherited.
+ *
+ * Currently, only ASCII environment variables are supported and
+ * errors are likely to occur if an environment variables with
+ * code-points outside the ASCII range is passed in.
+ */
+ Map<String, String> environment;
}
« no previous file with comments | « runtime/bin/process.cc ('k') | runtime/bin/process_impl.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698