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

Diff of /monit/status.c

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

revision 1.11 by hauk, Fri Sep 6 18:13:37 2002 UTC revision 1.12 by rory, Wed Sep 25 22:43:38 2002 UTC
# Line 127  void status_group(char *G) { Line 127  void status_group(char *G) {
127  static void local_status(Process_T p) {  static void local_status(Process_T p) {
128        
129    pid_t  pid= -1;    pid_t  pid= -1;
130      Dependant_T d;
131        
132    if ( (pid= is_process_running(p)) ) {    if ( (pid= is_process_running(p)) ) {
133    
# Line 136  static void local_status(Process_T p) { Line 137  static void local_status(Process_T p) {
137              p->name, (int)pid, uptime);              p->name, (int)pid, uptime);
138            
139      free(uptime);      free(uptime);
140    
141        for(d= p->dependantlist; d; d=p->dependantlist->next) {
142          fprintf(stdout, "Process '%s' is dependant\n", d->dependant);
143          if(d->next == NULL)
144            break;
145        }
146            
147    } else {    } else {
148            

Legend:
Removed from v.1.11  
changed lines
  Added in v.1.12

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