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

Diff of /monit/monitor.c

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

revision 1.33 by hauk, Tue Dec 17 19:55:17 2002 UTC revision 1.34 by martinp, Tue Dec 17 20:20:57 2002 UTC
# Line 491  static void do_default() { Line 491  static void do_default() {
491        if(is_rcfile_changed()) {        if(is_rcfile_changed()) {
492                    
493          int port= Run.httpdport;          int port= Run.httpdport;
494            char *bind_addr= Run.bind_addr?xstrdup(Run.bind_addr):NULL;
495    
496          do_reinit();          do_reinit();
497                    
# Line 498  static void do_default() { Line 499  static void do_default() {
499                        
500            stop_http();            stop_http();
501                        
502          } else if (port != Run.httpdport) {          } else if( !is(bind_addr, Run.bind_addr) || port != Run.httpdport ) {
503                        
504            stop_http();            stop_http();
505            start_http();            start_http();
# Line 508  static void do_default() { Line 509  static void do_default() {
509            start_http();            start_http();
510                        
511          }          }
512    
513            free(bind_addr);
514                    
515        }        }
516            

Legend:
Removed from v.1.33  
changed lines
  Added in v.1.34

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