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 |
|
|
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); |