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

Diff of /monit/util.c

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

revision 1.35 by chopp, Thu Oct 10 16:08:53 2002 UTC revision 1.36 by chopp, Wed Oct 23 14:01:26 2002 UTC
# Line 366  void printrunlist() { Line 366  void printrunlist() {
366      printf(" %-18s = %s\n", "Use ssl encryption", Run.httpdssl?"True":"False");      printf(" %-18s = %s\n", "Use ssl encryption", Run.httpdssl?"True":"False");
367    
368      if (Run.httpdssl) {      if (Run.httpdssl) {
369    
370        printf(" %-18s = %s\n", "PEM key/cert file", Run.httpsslpem);        printf(" %-18s = %s\n", "PEM key/cert file", Run.httpsslpem);
371    
372          if (Run.httpsslclientpem!=NULL) {
373            printf(" %-18s = %s\n", "Client cert file", Run.httpsslclientpem);
374          } else {
375            printf(" %-18s = %s\n", "Client cert file", "None");
376          }
377    
378          printf(" %-18s = %s\n", "Allow self certs",
379                 Run.allowselfcert?"True":"False");
380    
381      }      }
382    
383      printf(" %-18s = %s\n", "httpd auth. style",      printf(" %-18s = %s\n", "httpd auth. style",
# Line 626  pid_t get_pid(char *pidfile) { Line 636  pid_t get_pid(char *pidfile) {
636  int is_process_running(Process_T p) {  int is_process_running(Process_T p) {
637        
638    pid_t  pid;    pid_t  pid;
639        int kill_return=0;
640    
641    errno= 0;    errno= 0;
642    
643    if ((pid= get_pid(p->pidfile))) {    if ((pid= get_pid(p->pidfile))) {
644            
645      if(kill(pid, 0) == 0 || errno == EPERM)      if((kill_return=getpgid(pid)) > 0 || errno == EPERM)
646                    
647          return pid;          return pid;
648            

Legend:
Removed from v.1.35  
changed lines
  Added in v.1.36

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