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

Diff of /monit/control.c

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

revision 1.20 by martinp, Tue Dec 17 18:48:54 2002 UTC revision 1.21 by hauk, Tue Dec 17 19:59:39 2002 UTC
# Line 337  static void atomic_control_process(Proce Line 337  static void atomic_control_process(Proce
337      if(is_process_running(p)) {      if(is_process_running(p)) {
338        log("%s: (%s) %s\n", action, p->name, p->stop->arg[0]);        log("%s: (%s) %s\n", action, p->name, p->stop->arg[0]);
339        spawn(p, p->stop);        spawn(p, p->stop);
340          memset(p->procinfo, 0, sizeof *(p->procinfo));
       p->procinfo->cputime_prev= p->procinfo->cputime = 0;  
       p->procinfo->mem_kbyte= 0;  
       p->procinfo->mem_percent= 0.0;  
   
341        p->visited= TRUE;        p->visited= TRUE;
342      }      }
343    }    }

Legend:
Removed from v.1.20  
changed lines
  Added in v.1.21

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