197 |
if( toggle_validate_flag ) { |
if( toggle_validate_flag ) { |
198 |
|
|
199 |
if( is(action, "start")) { |
if( is(action, "start")) { |
|
|
|
|
if(Run.debug) |
|
|
log("Starting monitoring -- process %s\n", p->name); |
|
|
|
|
200 |
LOCK(Run.mutex) |
LOCK(Run.mutex) |
201 |
p->do_validate= TRUE; |
p->do_validate= TRUE; |
202 |
END_LOCK; |
END_LOCK; |
|
} |
|
|
|
|
|
if( is(action, "stop")) { |
|
203 |
|
|
204 |
if(Run.debug) |
if(Run.debug) |
205 |
log("Stoping monitoring -- process %s\n", p->name); |
log("Monitoring enabled -- process %s\n", p->name); |
206 |
|
|
207 |
|
} |
208 |
|
|
209 |
|
if( is(action, "stop")) { |
210 |
LOCK(Run.mutex) |
LOCK(Run.mutex) |
211 |
p->do_validate= FALSE; |
p->do_validate= FALSE; |
212 |
END_LOCK; |
END_LOCK; |
213 |
|
|
214 |
|
if(Run.debug) |
215 |
|
log("Monitoring disabled -- process %s\n", p->name); |
216 |
|
|
217 |
} |
} |
218 |
|
|
219 |
} |
} |