(file) Return to cimserver_unix.cpp CVS log (file) (dir) Up to [Pegasus] / pegasus / src / Server / Attic

Diff for /pegasus/src/Server/Attic/cimserver_unix.cpp between version 1.16 and 1.17

version 1.16, 2003/04/07 20:22:33 version 1.17, 2003/04/29 22:13:00
Line 106 
Line 106 
   }   }
  
   // get the pid from the file   // get the pid from the file
   fscanf(pid_file, "%ld\n", &pid);    fscanf(pid_file, "%d\n", &pid);
   
     fclose(pid_file);
  
   if (pid == 0)   if (pid == 0)
   {   {
Line 119 
Line 121 
 #if defined(PEGASUS_OS_HPUX) #if defined(PEGASUS_OS_HPUX)
   struct pst_status pstru;   struct pst_status pstru;
  
   if (pstat_getproc(&pstru, sizeof(struct pst_status), (size_t)0, pid) != -1)    int ret_code;
     ret_code = pstat_getproc(&pstru, sizeof(struct pst_status), (size_t)0, pid);
   
     if ( (ret_code != -1 ) && (strcmp(pstru.pst_ucomm, "cimserver")) == 0)
   {   {
         // cimserver is running
       return true;       return true;
   }   }
 #endif #endif
Line 141 
Line 147 
   }   }
  
   // get the pid from the file   // get the pid from the file
   fscanf(pid_file, "%ld\n", &pid);    fscanf(pid_file, "%d\n", &pid);
   
     fclose(pid_file);
  
   if (pid == 0)   if (pid == 0)
   {   {
Line 155 
Line 163 
 #if defined(PEGASUS_OS_HPUX) #if defined(PEGASUS_OS_HPUX)
   struct pst_status pstru;   struct pst_status pstru;
  
   if (pstat_getproc(&pstru, sizeof(struct pst_status), (size_t)0, pid) != -1)    int ret_code;
     ret_code = pstat_getproc(&pstru, sizeof(struct pst_status), (size_t)0, pid);
   
     if ( (ret_code != -1 ) && (strcmp(pstru.pst_ucomm, "cimserver")) == 0)
   {   {
         // cimserver is running, kill the process
       kill(pid, SIGKILL);       kill(pid, SIGKILL);
   }   }
 #endif #endif


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

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2