/[monit]/monit/util.c
ViewVC logotype

Diff of /monit/util.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.88 by chopp, Mon Sep 15 13:02:02 2003 UTC revision 1.89 by martinp, Mon Sep 15 19:49:57 2003 UTC
# Line 858  int is_process_running(Service_T s) { Line 858  int is_process_running(Service_T s) {
858        
859    errno= 0;    errno= 0;
860    
861    if((pid= get_pid(s->path))) {    if((pid= get_pid(s->path)))
       
 #ifdef AIX  
   
     /* Comment by Richard Schwaninger <risc@vmilch.at>: */  
     /* hmm. I get getpgid== -1 and errno==0 sometimes... */  
     if( (getpgid(pid) > -1) || (errno == EPERM) || (errno == 0))  
       return pid;  
   
 #else  
   
862      if( (getpgid(pid) > -1) || (errno == EPERM) )      if( (getpgid(pid) > -1) || (errno == EPERM) )
863        return pid;        return pid;
       
 #endif  
   
   }  
   
864    
865    memset(s->procinfo, 0, sizeof *(s->procinfo));    memset(s->procinfo, 0, sizeof *(s->procinfo));
866    

Legend:
Removed from v.1.88  
changed lines
  Added in v.1.89

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26