|
| RFProcessManager (char *nodename) |
|
int | Execute (char *script, int nargs, char **args) |
|
int | Execute (char *scr, char *arg0=NULL, char *arg1=NULL, char *arg2=NULL, char *arg3=NULL, char *arg4=NULL, char *arg5=NULL, char *arg6=NULL, char *arg7=NULL) |
|
int | CheckOutput () |
|
int | GetFd () |
|
pid_t | CheckProcess () |
|
|
static void | signal_handler (int num) |
|
|
int | m_iopipe [2] |
|
int | m_fdout |
|
std::vector< pid_t > | m_pidlist |
|
Definition at line 22 of file RFProcessManager.h.
◆ Execute()
int Execute |
( |
char * |
script, |
|
|
int |
nargs, |
|
|
char ** |
args |
|
) |
| |
Fill arg0
Definition at line 55 of file RFProcessManager.cc.
58 printf(
"RFProcessManager : Execute : scr=%s, nargs=%d\n", scr, nargs);
61 if (pid == (pid_t) 0) {
66 strcpy(argbuf[0], scr);
67 argval[nargval++] = argbuf[0];
69 for (
int i = 0; i < nargs; i++) {
70 strcpy(argbuf[nargval], args[i]);
71 argval[nargval] = argbuf[nargval];
75 argval[nargval] = NULL;
85 printf(
"RFProcessManager : invoking %s\n", scr);
86 for (
int i = 0; i < 10; i++) {
87 if (argval[i] == NULL)
break;
88 printf(
"argval[%d] = %s\n", i, argval[i]);
94 fprintf(stderr,
"missing file : %s\n", scr);
99 printf(
"RFProcessManager : forked. pid=%d\n", pid);
102 m_pidlist.push_back(pid);
The documentation for this class was generated from the following files: