#include <stdlib.h>#include <signal.h>#include <Basics.H>#include <BufStream.H>#include <OS.H>#include <VestaConfig.H>#include <TCP_sock.H>#include <SRPC.H>#include <VestaSource.H>#include <UniqueId.H>#include <sys/utsname.h>#include <sys/sysinfo.h>#include "RunToolClient.H"#include "RunToolDaemon.H"#include "Launcher.h"#include "get_load.h"Include dependency graph for RunToolDaemon.C:

Go to the source code of this file.
Classes | |
| class | std_info |
| class | children |
| class | children::child_info |
| class | req_data |
| struct | call_failure |
Typedefs | |
| typedef Sequence< Basics::cond * > | CondSeq |
Functions | |
| void | Info (SRPC *srpc, int intfVersion, int procId) throw (SRPC::failure) |
| void | RunToolServer (SRPC *srpc, int intfVersion, int procId) throw (SRPC::failure) |
| void | RunToolServerInit (int maxTools, int maxPending) throw (SRPC::failure) |
| void | RunToolServerCleanup () throw () |
Variables | |
| const Text | DEVNULL ("/dev/null") |
| const int | UNUSED = SYSERROR |
| typedef Sequence<Basics::cond*> CondSeq |
Definition at line 100 of file RunToolDaemon.C.
| void Info | ( | SRPC * | srpc, | |
| int | intfVersion, | |||
| int | procId | |||
| ) | throw (SRPC::failure) |
Definition at line 905 of file RunToolDaemon.C.
References implementation_error, Basics::mutex::lock(), children::maxChildren, children::maxPending, TCP_sock::failure::msg, children::mu, children::nInUse, children::nPending, RUN_TOOL_LOAD_VERSION, RUN_TOOL_OLDINFO, FP::Tag::Send(), and Basics::mutex::unlock().
Referenced by RunToolServer().
Here is the call graph for this function:

Here is the caller graph for this function:

| void RunToolServer | ( | SRPC * | srpc, | |
| int | intfVersion, | |||
| int | procId | |||
| ) | throw (SRPC::failure) |
Definition at line 951 of file RunToolDaemon.C.
References SRPC::default_proc_id, Info(), RUN_TOOL_DOIT, RUN_TOOL_INFO, RUN_TOOL_INTERFACE_VERSION, RUN_TOOL_OLDINFO, RunTool(), and SRPC::version_skew.
Referenced by RunToolServerHandler::call().
Here is the call graph for this function:

Here is the caller graph for this function:

| void RunToolServerCleanup | ( | ) | throw () |
Definition at line 1294 of file RunToolDaemon.C.
Referenced by main(), and SigHandler().
Here is the caller graph for this function:

| void RunToolServerInit | ( | int | maxTools, | |
| int | maxPending | |||
| ) | throw (SRPC::failure) |
Definition at line 1129 of file RunToolDaemon.C.
References Text::cchars(), Text::chars(), VestaConfig::get(), VestaConfig::get_int(), VestaConfig::get_Text(), children::init(), chars_seq::length(), call_failure::msg, FdCache::open(), RUN_TOOL_CONFIG_SECTION, SYSERROR, and UniqueId().
Referenced by main().
Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 69 of file RunToolDaemon.C.
Referenced by children::child_info::child_info(), children::killer_body(), and children::wait_for().
1.5.1