chiark / gitweb /
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 200bbfa..4244806 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;