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

Diff of /monit/status.c

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

revision 1.17 by martinp, Tue Dec 3 09:10:46 2002 UTC revision 1.18 by hauk, Thu Dec 19 20:50:06 2002 UTC
# Line 155  void status_group(char *G) { Line 155  void status_group(char *G) {
155  static void local_status(Process_T p) {  static void local_status(Process_T p) {
156        
157    pid_t  pid= -1;    pid_t  pid= -1;
   Dependant_T d;  
158        
159    if ( (pid= is_process_running(p)) ) {    if ( (pid= is_process_running(p)) ) {
160    
# Line 165  static void local_status(Process_T p) { Line 164  static void local_status(Process_T p) {
164              p->name, (int)pid, uptime);              p->name, (int)pid, uptime);
165            
166      free(uptime);      free(uptime);
167    
     for(d= p->dependantlist; d; d=d->next)  
       fprintf(stdout, "Process '%s' is dependant\n", d->dependant);  
       
168    } else {    } else {
169            
170      fprintf(stdout, "Process '%s' is not running\n",  p->name);      fprintf(stdout, "Process '%s' is not running\n",  p->name);

Legend:
Removed from v.1.17  
changed lines
  Added in v.1.18

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