I ran massdns for several hours to resolve large number of domains, and it quit prematurely with
DEBUG Epoll failure: Interrupted system call
This comes from https://github.com/blechschmidt/massdns/blob/master/src/main.c#L2013.
I'm not expert on this, but maybe epoll_wait() failures due to signal interrupts could be ignored?
At least that the understanding I got from e.g. https://stackoverflow.com/a/6870391