| 180 | } |
| 181 | |
| 182 | static void EnvironmentsToStringVector( |
| 183 | const std::map<std::string, std::string>& envs, |
| 184 | std::vector<std::string>* vs) |
| 185 | { |
| 186 | for (std::map<std::string, std::string>::const_iterator i = envs.begin(); |
| 187 | i != envs.end(); ++i) { |
| 188 | vs->push_back(i->first + "=" + i->second); |
| 189 | } |
| 190 | } |
| 191 | |
| 192 | static bool SetCloexec(int fd) |
| 193 | { |