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

Diff of /monit/state.c

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

revision 1.8 by martinp, Tue Aug 5 07:55:22 2003 UTC revision 1.9 by martinp, Mon Aug 11 23:30:54 2003 UTC
# Line 73  typedef struct mystate { Line 73  typedef struct mystate {
73    int  do_monitor;    int  do_monitor;
74    int  has_checksum_error;    int  has_checksum_error;
75    int  has_permission_error;    int  has_permission_error;
76      int  has_uid_error;
77      int  has_gid_error;
78  } State_T;  } State_T;
79    
80    
# Line 262  static void clone_state(Service_T servic Line 264  static void clone_state(Service_T servic
264    state->do_monitor= service->do_monitor;    state->do_monitor= service->do_monitor;
265    state->has_checksum_error= service->has_checksum_error;    state->has_checksum_error= service->has_checksum_error;
266    state->has_permission_error= service->has_permission_error;    state->has_permission_error= service->has_permission_error;
267      state->has_uid_error= service->uid?service->uid->has_error:FALSE;
268      state->has_gid_error= service->gid?service->gid->has_error:FALSE;
269    
270  }  }
271    
# Line 274  static void update_service_state(Service Line 278  static void update_service_state(Service
278    service->do_monitor= state->do_monitor;    service->do_monitor= state->do_monitor;
279    service->has_checksum_error= state->has_checksum_error;    service->has_checksum_error= state->has_checksum_error;
280    service->has_permission_error= state->has_permission_error;    service->has_permission_error= state->has_permission_error;
281      if(service->uid)
282        service->uid->has_error= state->has_uid_error;
283      if(service->gid)
284        service->gid->has_error= state->has_gid_error;
285        
286  }  }

Legend:
Removed from v.1.8  
changed lines
  Added in v.1.9

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