#endif
static int wait_and_act(struct supertype *container, int pfd,
- int monfd, int nowait)
+ int nowait)
{
fd_set rfds;
int maxfd = 0;
if (read(pfd, &err, 1) > 0)
err = handle_pipe(active_cmd, *aap);
- write(monfd, &err, 1);
}
}
int first = 1;
do {
rv = wait_and_act(container, container->mgr_pipe[0],
- container->mon_pipe[1], first);
+ first);
first = 0;
} while (rv >= 0);
}