/[monit]/monit/http/cervlet.c
ViewVC logotype

Diff of /monit/http/cervlet.c

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

revision 1.23 by hauk, Fri Sep 6 18:13:37 2002 UTC revision 1.24 by rory, Wed Sep 25 22:43:38 2002 UTC
# Line 719  static void do_process(HttpRequest req, Line 719  static void do_process(HttpRequest req,
719        }            }    
720      }      }
721    }    }
722      {
723        Dependant_T d;
724        for(d= p->dependantlist; d; d=p->dependantlist->next) {
725          if(d->dependant != NULL) {
726            out_print(res,"<tr><td>Dependant Process </a></td>"
727                      "<td> <a href=%s> %s </a></td></tr>",
728                      d->dependant, d->dependant);
729          }
730        if(d->next == NULL)
731          break;
732        }
733      }
734    out_print(res, "</table>");    out_print(res, "</table>");
735    out_print(res, "<table cellspacing=16><tr nowrap><td><font size=+1>");    out_print(res, "<table cellspacing=16><tr nowrap><td><font size=+1>");
736    /* Start program */    /* Start program */
# Line 745  static void print_status(Process_T p, Ht Line 757  static void print_status(Process_T p, Ht
757    
758    FILE *out= res->outputstream;    FILE *out= res->outputstream;
759    pid_t  pid= -1;    pid_t  pid= -1;
760      Dependant_T d;
761        
762    res->is_committed= TRUE;    res->is_committed= TRUE;
763        
# Line 761  static void print_status(Process_T p, Ht Line 774  static void print_status(Process_T p, Ht
774              pi->mem_percent/10.0,pi->mem_kbyte);              pi->mem_percent/10.0,pi->mem_kbyte);
775            
776      free(uptime);      free(uptime);
777    
778        for(d= p->dependantlist; d; d=p->dependantlist->next) {
779          fprintf(out, "\tDependant Process: %s\n", d->dependant);
780          if(d->next == NULL)
781            break;
782        }
783            
784    } else {    } else {
785            

Legend:
Removed from v.1.23  
changed lines
  Added in v.1.24

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