/[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.54 by martinp, Fri Feb 14 08:22:33 2003 UTC revision 1.55 by hauk, Tue Apr 29 21:28:53 2003 UTC
# Line 183  static void doGet(HttpRequest req, HttpR Line 183  static void doGet(HttpRequest req, HttpR
183    
184  static void is_monit_running(HttpRequest req, HttpResponse res) {  static void is_monit_running(HttpRequest req, HttpResponse res) {
185    
   int monit= exist_daemon();  
186    int status;    int status;
187    char *msg= NULL;    int monit= exist_daemon();
188    
189    if ( monit ) {    if ( monit ) {
190            
191      status= SC_OK;      status= SC_OK;
     msg= get_status_string(status);  
192            
193    } else {    } else {
194            
195      status= SC_GONE;      status= SC_GONE;
     msg= get_status_string(status);  
196            
197    }    }
198    
199    set_status(res, status, msg);    set_status(res, status);
   
   free(msg);  
200        
201  }  }
202            

Legend:
Removed from v.1.54  
changed lines
  Added in v.1.55

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