#include "JobControl/JobCEnv.h"#include <getopt.h>#include <sys/types.h>#include <dirent.h>#include <cstdlib>#include <cassert>#include <cstring>#include <csignal>#include "TEnv.h"#include "TROOT.h"#include "TSystem.h"#include "JobControl/JobCRootEnv.h"#include "JobControl/JobCleaner.h"#include "JobControl/JobCFloatXImp.h"#include "JobControl/IsArgMacroFile.h"#include "MessageService/MsgService.h"#include "MinosObjectMap/MomNavigator.h"Go to the source code of this file.
Defines | |
| #define | GETOPTDONE (-1) |
Functions | |
| CVSID ("$Id: JobCEnv.cxx,v 1.42 2007/08/17 01:31:02 rhatcher Exp $") | |
| void | gsSIGHUPhandler (int) |
| void | gsSIGUSR1handler (int) |
| int | JobCEnvSetenv (const char *name, const char *value) |
Variables | |
| bool | gsSIGHUP = false |
| bool | gsSIGUSR1 = false |
|
|
Definition at line 17 of file JobCEnv.cxx. |
|
||||||||||||
|
|
|
|
Definition at line 44 of file JobCEnv.cxx. References gsSIGHUP. Referenced by JobCEnv::SetSignalHandlers(). 00044 { gsSIGHUP = true; }
|
|
|
Definition at line 45 of file JobCEnv.cxx. References gsSIGUSR1. Referenced by JobCEnv::SetSignalHandlers(). 00045 { gsSIGUSR1 = true; }
|
|
||||||||||||
|
Definition at line 47 of file JobCEnv.cxx. References s(). Referenced by JobCEnv::ProcessCommandLine(). 00047 {
00048 // A transportable "setenv" that works on both Linux and IRIX
00049 // int setenv(const char *name, const char *value, int overwrite);
00050 // found in Linux's <stdlib.h> is NOT POSIX standard
00051 // This is just like TUnixSystem::Setenv, but avoids
00052 // entanglement with ROOT at this stage
00053
00054 char *s = new char [strlen(name)+strlen(value)+2]; // space for = & \0
00055 sprintf(s,"%s=%s",name,value);
00056 int success = ::putenv(s); // putenv is more standard than setenv
00057 // passed string becomes part of the environment, so altering
00058 // the string changes the environment -- DON'T delete 's'
00059 return success;
00060 }
|
|
|
Definition at line 39 of file JobCEnv.cxx. Referenced by gsSIGHUPhandler(). |
|
|
Definition at line 40 of file JobCEnv.cxx. Referenced by JobCEnv::ContinueRun(), and gsSIGUSR1handler(). |
1.3.9.1