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

Diff of /monit/state.c

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

revision 1.13 by hauk, Thu Aug 14 21:43:14 2003 UTC revision 1.14 by hauk, Sun Aug 17 02:21:22 2003 UTC
# Line 81  typedef struct mystate { Line 81  typedef struct mystate {
81    int  nstart;        int  nstart;    
82    int  ncycle;        int  ncycle;    
83    int  do_monitor;    int  do_monitor;
   int  has_checksum_error;  
84    int  has_permission_error;    int  has_permission_error;
85    int  has_uid_error;    int  has_uid_error;
86    int  has_gid_error;    int  has_gid_error;
# Line 280  static void clone_state(Service_T servic Line 279  static void clone_state(Service_T servic
279    state->nstart= service->nstart;    state->nstart= service->nstart;
280    state->ncycle= service->ncycle;    state->ncycle= service->ncycle;
281    state->do_monitor= service->do_monitor;    state->do_monitor= service->do_monitor;
   state->has_checksum_error= service->checksum?  
       service->checksum->has_error:FALSE;  
282    state->has_permission_error= service->perm?service->perm->has_error:FALSE;    state->has_permission_error= service->perm?service->perm->has_error:FALSE;
283    state->has_uid_error= service->uid?service->uid->has_error:FALSE;    state->has_uid_error= service->uid?service->uid->has_error:FALSE;
284    state->has_gid_error= service->gid?service->gid->has_error:FALSE;    state->has_gid_error= service->gid?service->gid->has_error:FALSE;
# Line 295  static void update_service_state(Service Line 292  static void update_service_state(Service
292    service->nstart= state->nstart;    service->nstart= state->nstart;
293    service->ncycle= state->ncycle;    service->ncycle= state->ncycle;
294    service->do_monitor= state->do_monitor;    service->do_monitor= state->do_monitor;
   if(service->checksum)  
     service->checksum->has_error= state->has_checksum_error;  
295    if(service->perm)    if(service->perm)
296      service->perm->has_error= state->has_permission_error;      service->perm->has_error= state->has_permission_error;
297    if(service->uid)    if(service->uid)

Legend:
Removed from v.1.13  
changed lines
  Added in v.1.14

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