| 85 | } |
| 86 | |
| 87 | void commandDiscarded(const Subprocess& s, const string& cmd) |
| 88 | { |
| 89 | if (s.status().isPending()) { |
| 90 | VLOG(1) << "'" << cmd << "' is being discarded"; |
| 91 | os::kill(s.pid(), SIGKILL); |
| 92 | } |
| 93 | } |
| 94 | |
| 95 | |
| 96 | // TODO(jieyu): Move the following curl based utility functions to a |