| 194 | } |
| 195 | |
| 196 | int read_command_output(std::ostream& os, const char* cmd) { |
| 197 | #if !defined(OS_LINUX) |
| 198 | return read_command_output_through_popen(os, cmd); |
| 199 | #else |
| 200 | return FLAGS_run_command_through_clone |
| 201 | ? read_command_output_through_clone(os, cmd) |
| 202 | : read_command_output_through_popen(os, cmd); |
| 203 | #endif |
| 204 | } |
| 205 | |
| 206 | } // namespace butil |