From: Lennart Poettering Date: Fri, 23 Apr 2010 20:29:35 +0000 (+0200) Subject: manager: properly check for EINTR in main loop X-Git-Tag: 0.git+20100605+dfd8ee-1~68 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6089f4a9a85111ac7056834ba951aed599ab3c2b;p=systemd manager: properly check for EINTR in main loop --- diff --git a/manager.c b/manager.c index 200bbfa0..4244806c 100644 --- a/manager.c +++ b/manager.c @@ -1938,7 +1938,7 @@ int manager_loop(Manager *m) { if ((n = epoll_wait(m->epoll_fd, &event, 1, -1)) < 0) { - if (errno == -EINTR) + if (errno == EINTR) continue; return -errno;