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

Diff for /pegasus/src/Service/ServerRunStatus.cpp between version 1.6.2.2 and 1.7

version 1.6.2.2, 2007/12/01 01:16:33 version 1.7, 2007/11/28 20:38:34
Line 50 
Line 50 
 #endif #endif
  
 #if defined(PEGASUS_OS_AIX) || defined(PEGASUS_OS_PASE) #if defined(PEGASUS_OS_AIX) || defined(PEGASUS_OS_PASE)
 extern "C"  
 {  
 # include <procinfo.h> # include <procinfo.h>
 extern int getprocs(struct procsinfo *, int, struct fdsinfo *, int,pid_t *,int);  
 # define PROCSIZE sizeof(struct procsinfo) # define PROCSIZE sizeof(struct procsinfo)
   # if PEGASUS_AIX_VERSION <= 5
   // AIX version 5 does not define getprocs() in procinfo.h
   extern "C"
   {
       extern int getprocs(
           struct procsinfo *, int, struct fdsinfo *, int,pid_t *,int);
 } }
 #endif #endif
   #endif
  
 PEGASUS_NAMESPACE_BEGIN PEGASUS_NAMESPACE_BEGIN
  
Line 114 
Line 118 
     return true;     return true;
 } }
  
 #elif defined(PEGASUS_OS_TYPE_UNIX) || \  #elif defined(PEGASUS_OS_TYPE_UNIX) || defined(PEGASUS_OS_VMS)
       defined(PEGASUS_OS_VMS) || \  
       defined(PEGASUS_OS_VXWORKS)  
  
 ////////////////////////////////////// //////////////////////////////////////
 // //
Line 308 
Line 310 
     static char path[32];     static char path[32];
     static struct stat statBuffer;     static struct stat statBuffer;
  
     sprintf(path, "/proc/%d", (int)pid);      sprintf(path, "/proc/%d", pid);
     if (stat(path, &statBuffer) == -1)          // process stopped running     if (stat(path, &statBuffer) == -1)          // process stopped running
     {     {
         return false;         return false;


Legend:
Removed from v.1.6.2.2  
changed lines
  Added in v.1.7

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2