From f7055e0733ef9c018174576e295239103d2224f9 Mon Sep 17 00:00:00 2001 From: ageay Date: Mon, 29 Nov 2004 14:34:49 +0000 Subject: [PATCH] *** empty log message *** --- src/Utils/Utils_Identity.py | 7 ++----- src/Utils/Utils_SignalsHandler.cxx | 2 +- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/src/Utils/Utils_Identity.py b/src/Utils/Utils_Identity.py index 76fbee914..4f4cc4520 100644 --- a/src/Utils/Utils_Identity.py +++ b/src/Utils/Utils_Identity.py @@ -49,11 +49,8 @@ class Identity: def __init__(self,name): self._name = name self._pid = os.getpid() - #self._machine = socket.gethostname() - HostName = os.getenv( "HOST" ) - myMachine = string.split( HostName , '.' ) - self._machine = myMachine[0] - self._adip = socket.gethostbyname( myMachine[0] ) # IP adress + self._machine = socket.gethostname() + self._adip = socket.gethostbyname(self._machine) # IP adress self._uid = os.getuid() list = pwd.getpwuid(self._uid) self._pwname = list[0] # user name diff --git a/src/Utils/Utils_SignalsHandler.cxx b/src/Utils/Utils_SignalsHandler.cxx index a76eb3eaf..e0940bfda 100644 --- a/src/Utils/Utils_SignalsHandler.cxx +++ b/src/Utils/Utils_SignalsHandler.cxx @@ -78,7 +78,7 @@ static void RestoreSigHandler(TSigHandler theSigHandler, //======================================================================= Utils_SignalsHandler::Utils_SignalsHandler() { - StoreSignalHandler(mySigHandlerCont,SIGHUP); // floating point exception + StoreSignalHandler(mySigHandlerCont,SIGHUP); // end of leader process StoreSignalHandler(mySigHandlerCont,SIGFPE); // floating point exception StoreSignalHandler(mySigHandlerCont,SIGINT); // interrupt -- 2.39.2