]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
*** empty log message ***
authorageay <ageay>
Mon, 29 Nov 2004 14:34:49 +0000 (14:34 +0000)
committerageay <ageay>
Mon, 29 Nov 2004 14:34:49 +0000 (14:34 +0000)
src/Utils/Utils_Identity.py
src/Utils/Utils_SignalsHandler.cxx

index 76fbee914f7ab0155e6bb715f28fa5df707c8475..4f4cc4520cf7d2febefa83ab9acaefad102dba09 100644 (file)
@@ -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
index a76eb3eafb909da5fa5df775fb466901d3fe3135..e0940bfdacd39ab2f6ebb85ecaabde562b9d19a6 100644 (file)
@@ -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