| 52 | } |
| 53 | |
| 54 | bool TaskTracer::SignalSync::Init() { |
| 55 | if (pipe(pipe_fds) != 0) { |
| 56 | PLOG(ERROR) << "Fail to pipe"; |
| 57 | return false; |
| 58 | } |
| 59 | if (butil::make_non_blocking(pipe_fds[0]) != 0) { |
| 60 | PLOG(ERROR) << "Fail to make_non_blocking"; |
| 61 | return false; |
| 62 | } |
| 63 | if (butil::make_non_blocking(pipe_fds[1]) != 0) { |
| 64 | PLOG(ERROR) << "Fail to make_non_blocking"; |
| 65 | return false; |
| 66 | } |
| 67 | |
| 68 | return true; |
| 69 | } |
| 70 | |
| 71 | std::string TaskTracer::Result::OutputToString() const { |
| 72 | std::string str; |
no test coverage detected