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

Diff of /monit/util.c

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

revision 1.37 by chopp, Fri Oct 25 15:50:46 2002 UTC revision 1.38 by martinp, Wed Oct 30 00:47:14 2002 UTC
# Line 640  pid_t get_pid(char *pidfile) { Line 640  pid_t get_pid(char *pidfile) {
640  int is_process_running(Process_T p) {  int is_process_running(Process_T p) {
641        
642    pid_t  pid;    pid_t  pid;
643    int kill_return=0;    int kill_return= 0;
644    
645    errno= 0;    errno= 0;
646    
647    if ((pid= get_pid(p->pidfile))) {    if ((pid= get_pid(p->pidfile))) {
648            
649      if((kill_return=getpgid(pid)) > 0 || errno == EPERM)      if((kill_return= getpgid(pid)) > 0 || errno == EPERM)
650                    
651          return pid;          return pid;
652            

Legend:
Removed from v.1.37  
changed lines
  Added in v.1.38

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