MCPcopy Create free account
hub / github.com/apache/trafficserver / get_fd

Method get_fd

src/proxy/logging/LogFile.cc:777–787  ·  view source on GitHub ↗

* Returns the fd of the entity (pipe or regular file ) that this object is * representing * * Returns -1 on error, the correct fd otherwise */

Source from the content-addressed store, hash-verified

775 * Returns -1 on error, the correct fd otherwise
776 */
777int
778LogFile::get_fd()
779{
780 if (m_file_format == LOG_FILE_PIPE) {
781 return m_fd;
782 } else if (m_log && m_log->m_fp) {
783 return fileno(m_log->m_fp);
784 } else {
785 return -1;
786 }
787}

Callers 2

eventHandlerMethod · 0.45
flush_thread_mainMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected