/[monit]/monit/p.y
ViewVC logotype

Diff of /monit/p.y

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

revision 1.120 by martinp, Mon Sep 8 19:09:21 2003 UTC revision 1.121 by martinp, Mon Sep 8 19:51:52 2003 UTC
# Line 1046  int parse(char *controlfile) { Line 1046  int parse(char *controlfile) {
1046        fclose(yyin);        fclose(yyin);
1047    
1048        /* If defined - add the last service to the service list */        /* If defined - add the last service to the service list */
1049        if(current) {        if(current)
           
         createinfo();  
1050          addservice(current);          addservice(current);
           
       }  
1051                
1052    END_LOCK;    END_LOCK;
1053    
# Line 1141  static void createservice(int type, char Line 1137  static void createservice(int type, char
1137      NEW(current);      NEW(current);
1138    }    }
1139    
   createinfo();  
   
1140    /* Reset the current object */    /* Reset the current object */
1141    memset(current, 0, sizeof(*current));    memset(current, 0, sizeof(*current));
1142    
# Line 1154  static void createservice(int type, char Line 1148  static void createservice(int type, char
1148    current->name= name;    current->name= name;
1149    current->path= value;    current->path= value;
1150    
1151      createinfo();
1152    
1153    pthread_mutex_init(&current->mutex, NULL);    pthread_mutex_init(&current->mutex, NULL);
1154    
1155  }  }

Legend:
Removed from v.1.120  
changed lines
  Added in v.1.121

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