(file) Return to ServerProcessUnix.cpp CVS log (file) (dir) Up to [Pegasus] / pegasus / src / Service

Diff for /pegasus/src/Service/ServerProcessUnix.cpp between version 1.17 and 1.17.8.2

version 1.17, 2007/06/19 17:58:04 version 1.17.8.2, 2008/02/06 20:41:57
Line 98 
Line 98 
  
 int ServerProcess::cimserver_fork() int ServerProcess::cimserver_fork()
 { {
     getSigHandle()->registerHandler(SIGTERM, sigTermHandler);  
     getSigHandle()->activate(SIGTERM);  
     umask(S_IRWXG | S_IRWXO);     umask(S_IRWXG | S_IRWXO);
  
     if (Executor::detectExecutor() == 0)     if (Executor::detectExecutor() == 0)
Line 108 
Line 106 
         return 0;         return 0;
     }     }
  
       getSigHandle()->registerHandler(SIGTERM, sigTermHandler);
       getSigHandle()->activate(SIGTERM);
     getSigHandle()->registerHandler(PEGASUS_SIGUSR1, sigUsr1Handler);     getSigHandle()->registerHandler(PEGASUS_SIGUSR1, sigUsr1Handler);
     getSigHandle()->activate(PEGASUS_SIGUSR1);     getSigHandle()->activate(PEGASUS_SIGUSR1);
  
Line 162 
Line 162 
 { {
     pid_t ppid = getppid();     pid_t ppid = getppid();
     if (id)     if (id)
       {
         kill(ppid, SIGTERM);         kill(ppid, SIGTERM);
       }
       else
       {
           if (Executor::detectExecutor() == 0)
           {
               Executor::daemonizeExecutor();
           }
     else     else
           {
         kill(ppid, PEGASUS_SIGUSR1);         kill(ppid, PEGASUS_SIGUSR1);
 } }
       }
   }
  
  
 // Platform specific run // Platform specific run


Legend:
Removed from v.1.17  
changed lines
  Added in v.1.17.8.2

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2