From: Michael Tremer Date: Tue, 17 May 2022 16:20:19 +0000 (+0000) Subject: execute: Ignore if epoll_wait() is being interrupted X-Git-Tag: 0.9.28~783 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=118db8b91bfe5ede6f70961aa1fe19dc47fa7422;p=pakfire.git execute: Ignore if epoll_wait() is being interrupted This can happen if the process is receiving a signal and we should just continue as usual. Signed-off-by: Michael Tremer --- diff --git a/src/libpakfire/execute.c b/src/libpakfire/execute.c index f42a2abbd..150f77047 100644 --- a/src/libpakfire/execute.c +++ b/src/libpakfire/execute.c @@ -212,6 +212,10 @@ static int pakfire_execute_logger(struct pakfire* pakfire, pakfire_execute_loggi int num = epoll_wait(epollfd, events, EPOLL_MAX_EVENTS, -1); if (num < 1) { + // Ignore if epoll_wait() has been interrupted + if (errno == EINTR) + continue; + ERROR(pakfire, "epoll_wait() failed: %m\n"); r = -errno;