chiark / gitweb /
shared: move fdset.c from core/ to shared/ since it is used by more than the core now
[elogind.git] / src / core / manager.c
index ac11ce18064e74397ea3f80dc90d95385272cada..a3839e1538e29cf61ac4613871f07b650ca49e3c 100644 (file)
@@ -1176,7 +1176,8 @@ static int manager_process_signal_fd(Manager *m) {
         assert(m);
 
         for (;;) {
-                if ((n = read(m->signal_watch.fd, &sfsi, sizeof(sfsi))) != sizeof(sfsi)) {
+                n = read(m->signal_watch.fd, &sfsi, sizeof(sfsi));
+                if (n != sizeof(sfsi)) {
 
                         if (n >= 0)
                                 return -EIO;