struct timespec ts;
siginfo_t status = {};
sigset_t set;
- Iterator i;
void *p;
int r, signum;
* Request termination of the remaining processes as those
* are not required anymore.
*/
- SET_FOREACH(p, pids, i)
+ SET_FOREACH(p, pids)
(void) kill(PTR_TO_PID(p), SIGTERM);
/*
/*
* Kill hanging processes.
*/
- SET_FOREACH(p, pids, i) {
+ SET_FOREACH(p, pids) {
log_warning("Failed to terminate child %d, killing it", PTR_TO_PID(p));
(void) kill(PTR_TO_PID(p), SIGKILL);
}