Flush all buffers.
| 2032 | |
| 2033 | /// Flush all buffers. |
| 2034 | void resetOutput() |
| 2035 | { |
| 2036 | output_format.reset(); |
| 2037 | logs_out_stream.reset(); |
| 2038 | outfile_target.reset(); |
| 2039 | |
| 2040 | if (pager_cmd) |
| 2041 | { |
| 2042 | pager_cmd->in.close(); |
| 2043 | pager_cmd->wait(); |
| 2044 | } |
| 2045 | pager_cmd = nullptr; |
| 2046 | |
| 2047 | if (out_logs_buf) |
| 2048 | { |
| 2049 | out_logs_buf->next(); |
| 2050 | out_logs_buf.reset(); |
| 2051 | } |
| 2052 | |
| 2053 | out_path.reset(); |
| 2054 | std_out.next(); |
| 2055 | } |
| 2056 | |
| 2057 | |
| 2058 | /// Receives and processes packets coming from server. |