| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "components/nacl/zygote/nacl_fork_delegate_linux.h" | 5 #include "components/nacl/zygote/nacl_fork_delegate_linux.h" |
| 6 | 6 |
| 7 #include <signal.h> | 7 #include <signal.h> |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdlib.h> | 9 #include <stdlib.h> |
| 10 #include <sys/resource.h> | 10 #include <sys/resource.h> |
| (...skipping 441 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 452 pass_through_vars = base::SplitString( | 452 pass_through_vars = base::SplitString( |
| 453 pass_through_string, std::string(1, kNaClEnvPassthroughDelimiter), | 453 pass_through_string, std::string(1, kNaClEnvPassthroughDelimiter), |
| 454 base::TRIM_WHITESPACE, base::SPLIT_WANT_ALL); | 454 base::TRIM_WHITESPACE, base::SPLIT_WANT_ALL); |
| 455 } | 455 } |
| 456 pass_through_vars.push_back(kNaClExeStderr); | 456 pass_through_vars.push_back(kNaClExeStderr); |
| 457 pass_through_vars.push_back(kNaClExeStdout); | 457 pass_through_vars.push_back(kNaClExeStdout); |
| 458 pass_through_vars.push_back(kNaClVerbosity); | 458 pass_through_vars.push_back(kNaClVerbosity); |
| 459 pass_through_vars.push_back(sandbox::kSandboxEnvironmentApiRequest); | 459 pass_through_vars.push_back(sandbox::kSandboxEnvironmentApiRequest); |
| 460 for (size_t i = 0; i < pass_through_vars.size(); ++i) { | 460 for (size_t i = 0; i < pass_through_vars.size(); ++i) { |
| 461 std::string temp; | 461 std::string temp; |
| 462 if (env->GetVar(pass_through_vars[i].c_str(), &temp)) | 462 if (env->GetVar(pass_through_vars[i], &temp)) |
| 463 options->environ[pass_through_vars[i]] = temp; | 463 options->environ[pass_through_vars[i]] = temp; |
| 464 } | 464 } |
| 465 } | 465 } |
| 466 | 466 |
| 467 } // namespace nacl | 467 } // namespace nacl |
| OLD | NEW |