]> err.no Git - systemd/commitdiff
manager: properly check for EINTR in main loop
authorLennart Poettering <lennart@poettering.net>
Fri, 23 Apr 2010 20:29:35 +0000 (22:29 +0200)
committerLennart Poettering <lennart@poettering.net>
Fri, 23 Apr 2010 20:29:35 +0000 (22:29 +0200)
manager.c

index 200bbfa006e38c6e0e1632713d3fe2b8e9ace24e..4244806ce28c42eb1325209bf681b40690540215 100644 (file)
--- 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;