irods  4.2.8
About: iRODS (the integrated Rule Oriented Data System) is a distributed data-management system for creating data grids, digital libraries, persistent archives, and real-time data systems.
  Fossies Dox: irods-4.2.8.tar.gz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

procLog.cpp File Reference
#include "procLog.h"
#include "miscUtil.h"
#include "rsGlobalExtern.hpp"
#include "rodsConnect.h"
#include "rsLog.hpp"
#include "arpa/inet.h"
#include <fstream>
#include <boost/lexical_cast.hpp>
Include dependency graph for procLog.cpp:

Go to the source code of this file.

Functions

int initAndClearProcLog ()
 
int initProcLog ()
 
int logAgentProc (rsComm_t *rsComm)
 
int rmProcLog (int pid)
 
int readProcLog (int pid, procLog_t *procLog)
 

Function Documentation

◆ initAndClearProcLog()

int initAndClearProcLog ( )

Definition at line 13 of file procLog.cpp.

References DEFAULT_DIR_MODE, initProcLog(), LOG_ERROR, ProcLogDir, rmFilesInDir(), and rodsLog().

Referenced by initServerMain().

Here is the call graph for this function:

◆ initProcLog()

int initProcLog ( )

Definition at line 26 of file procLog.cpp.

References getLogDir(), MAX_NAME_LEN, PROC_LOG_DIR_NAME, and ProcLogDir.

Referenced by initAgent(), initAndClearProcLog(), and runIrodsAgentFactory().

Here is the call graph for this function:

◆ logAgentProc()

int logAgentProc ( rsComm_t rsComm)

Definition at line 33 of file procLog.cpp.

References rsComm_t::clientUser, getLocalZoneName(), LOG_ERROR, MAX_NAME_LEN, NULL, rsComm_t::option, PROC_LOG_DONE, ProcLogDir, rsComm_t::procLogFlag, rsComm_t::proxyUser, rsComm_t::remoteAddr, rodsLog(), userInfo_t::rodsZone, UNIX_FILE_OPEN_ERR, and userInfo_t::userName.

Referenced by runIrodsAgentFactory().

Here is the call graph for this function:

◆ readProcLog()

int readProcLog ( int  pid,
procLog_t procLog 
)

Definition at line 109 of file procLog.cpp.

References procLog_t::clientName, procLog_t::clientZone, INVALID_LEXICAL_CAST, LOG_ERROR, MAX_NAME_LEN, NULL, procLog_t::pid, pid_age::pid, ProcLogDir, procLog_t::progName, procLog_t::proxyName, procLog_t::proxyZone, procLog_t::remoteAddr, rodsLog(), procLog_t::startTime, UNIX_FILE_READ_ERR, and USER__NULL_INPUT_ERR.

Referenced by localProcStat().

Here is the call graph for this function:

◆ rmProcLog()

int rmProcLog ( int  pid)

Definition at line 100 of file procLog.cpp.

References MAX_NAME_LEN, pid_age::pid, and ProcLogDir.

Referenced by irodsAgentSignalExit(), and runIrodsAgentFactory().