#include <wvsubproc.h>
Collaboration diagram for WvSubProc:
Public Member Functions | |
DeclareWvList (pid_t) | |
WvSubProc () | |
WvSubProc (const char cmd[], const char *const *argv) | |
virtual | ~WvSubProc () |
void | prepare (const char cmd[],...) |
void | preparev (const char cmd[], va_list ap) |
void | preparev (const char cmd[], const char *const *argv) |
void | preparev (const char cmd[], WvStringList &) |
int | start (const char cmd[],...) |
int | startv (const char cmd[], const char *const *argv) |
virtual int | start_again () |
virtual int | fork (int *waitfd) |
virtual void | stop (time_t msec_delay, bool kill_children=true) |
virtual void | wait (time_t msec_delay, bool wait_children=true) |
pid_t | pidfile_pid () |
void | setMemLimit (int megs) |
Sets a limit on the number of megabytes of memory the subprocess will. | |
void | kill (int sig) |
void | kill_primary (int sig) |
virtual void | suspend () |
virtual void | resume () |
Public Attributes | |
pid_tList | old_pids |
pid_t | pid |
bool | running |
int | estatus |
WvString | pidfile |
WvString | last_cmd |
WvString | app |
WvStringList | last_args |
WvStringList | env |
|
Definition at line 21 of file wvsubproc.cc. |
|
Definition at line 43 of file wvsubproc.h. |
|
Definition at line 30 of file wvsubproc.cc. References stop(). |
|
|
|
Definition at line 160 of file wvsubproc.cc. References env, estatus, pid, running, and wvfork_start(). Referenced by WvPipe::setup(). |
|
Definition at line 216 of file wvsubproc.cc. References kill_primary(), old_pids, pid, and running. Referenced by WvPipe::kill(), and stop(). |
|
Definition at line 241 of file wvsubproc.cc. |
|
Definition at line 193 of file wvsubproc.cc. References pidfile. Referenced by wait(). |
|
Definition at line 76 of file wvsubproc.cc. References preparev(). |
|
Definition at line 108 of file wvsubproc.cc. |
|
Definition at line 97 of file wvsubproc.cc. |
|
Definition at line 85 of file wvsubproc.cc. |
|
Definition at line 90 of file wvsubproc.h. |
|
Sets a limit on the number of megabytes of memory the subprocess will.
Definition at line 79 of file wvsubproc.h. |
|
Definition at line 118 of file wvsubproc.cc. References preparev(), and start_again(). |
|
Definition at line 136 of file wvsubproc.cc. |
|
Definition at line 129 of file wvsubproc.cc. References preparev(), and start_again(). Referenced by WvInterface::delroute(). |
|
Definition at line 250 of file wvsubproc.cc. References kill(), kill_primary(), and wait(). Referenced by ~WvSubProc(). |
|
Definition at line 88 of file wvsubproc.h. |
|
Definition at line 276 of file wvsubproc.cc. References estatus, msecdiff(), old_pids, pid, pidfile_pid(), and running. Referenced by WvPipe::child_exited(), WvInterface::delroute(), WvPipe::exit_status(), WvPipe::finish(), and stop(). |
|
Definition at line 38 of file wvsubproc.h. |
|
Definition at line 39 of file wvsubproc.h. Referenced by fork(). |
|
Definition at line 37 of file wvsubproc.h. Referenced by WvPipe::child_killed(), WvInterface::delroute(), WvPipe::exit_status(), WvPipe::finish(), fork(), wait(), and WvSubProc(). |
|
Definition at line 39 of file wvsubproc.h. Referenced by preparev(), and start_again(). |
|
Definition at line 38 of file wvsubproc.h. Referenced by preparev(), and start_again(). |
|
Definition at line 33 of file wvsubproc.h. Referenced by kill(), kill_primary(), and wait(). |
|
Definition at line 35 of file wvsubproc.h. Referenced by fork(), WvPipe::getpid(), kill(), kill_primary(), wait(), and WvSubProc(). |
|
Definition at line 38 of file wvsubproc.h. Referenced by pidfile_pid(). |
|
Definition at line 36 of file wvsubproc.h. Referenced by WvPipe::child_exited(), WvPipe::finish(), fork(), kill(), WvPipe::kill(), kill_primary(), wait(), and WvSubProc(). |