exit_mainloop
static sig_atomic_t exit_mainloop;
if (exit_mainloop || !nfds)
exit_mainloop = 1;
if (mainloop_add(fd, pid < 0 ? exit_mainloop : kill_process, &pid)) {
if (mainloop_add(fd, exit_mainloop, NULL)) {