(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.11.18.1 and 1.11.18.2

version 1.11.18.1, 2007/02/16 19:28:29 version 1.11.18.2, 2007/04/18 11:46:29
Line 297 
Line 297 
     buf.ps_pathptr   =(char *) malloc(buf.ps_pathlen   =PS_PATHBLEN);     buf.ps_pathptr   =(char *) malloc(buf.ps_pathlen   =PS_PATHBLEN);
     buf.ps_cmdptr    =(char *) malloc(buf.ps_cmdlen    =PS_CMDBLEN);     buf.ps_cmdptr    =(char *) malloc(buf.ps_cmdlen    =PS_CMDBLEN);
  
     token = w_getpsent(token, &buf, sizeof(buf));      while((token = w_getpsent(token, &buf, sizeof(buf))) > 0)
     do {      {
         token = w_getpsent(token, &buf, sizeof(buf));          if (buf.ps_pid==pid)
         if (buf.ps_pid==pid) {          {
               // If the process id is associated with the program
               // "cimserver", then a cimserver is still running.
               if (strstr(buf.ps_pathptr,"cimserver")!= NULL )
               {
             free(buf.ps_conttyptr);             free(buf.ps_conttyptr);
             free(buf.ps_pathptr);             free(buf.ps_pathptr);
             free(buf.ps_cmdptr);             free(buf.ps_cmdptr);
             return true;             return true;
         }         }
     } while(token>0);              // pid found was not associated with a cimserver
               break;
           }
       }
  
     free(buf.ps_conttyptr);     free(buf.ps_conttyptr);
     free(buf.ps_pathptr);     free(buf.ps_pathptr);


Legend:
Removed from v.1.11.18.1  
changed lines
  Added in v.1.11.18.2

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2