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

Diff of /monit/util.c

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

revision 1.173 by hauk, Sat Nov 19 18:33:12 2005 UTC revision 1.174 by hauk, Fri Nov 25 23:31:55 2005 UTC
# Line 1144  int Util_isProcessRunning(Service_T s) { Line 1144  int Util_isProcessRunning(Service_T s) {
1144        
1145    errno= 0;    errno= 0;
1146    if((pid= Util_getPid(s->path)) >= 0) {    if((pid= Util_getPid(s->path)) >= 0) {
1147      DEBUG("Info: Got pid [%d] from '%s'\n", pid, s->path);      DEBUG("'%s' got pid [%d] from '%s'\n", s->name, pid, s->path);
1148      if( (getpgid(pid) > -1) || (errno == EPERM) )      if( (getpgid(pid) > -1) || (errno == EPERM) )
1149        return pid;        return pid;
1150      DEBUG("Info: Error testing process id [%d] -- %s\n", pid, STRERROR);      DEBUG("'%s' Error testing process id [%d] -- %s\n", s->name, pid, STRERROR);
1151          }          }
1152    Util_resetInfo(s);    Util_resetInfo(s);
1153        

Legend:
Removed from v.1.173  
changed lines
  Added in v.1.174

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