+ /* Wait for something to happen. We don't just block forever in recvfrom()
+ * as otherwise we'd never die if the parent terminated uncontrolledly. */
+ FD_ZERO(&fds);
+ FD_SET(fd, &fds);
+ tv.tv_sec = 1;
+ tv.tv_usec = 0;
+ select(fd + 1, &fds, 0, 0, &tv);