chiark / gitweb /
journald: make sure the stdout/stderr stream fd is removed from epoll before we close it
[elogind.git] / src / core / manager.c
index f06df54d910806401659416f60954cb6b92df516..ad4c6e8ed91fdce35495d1a8c752f2d601c1d2b2 100644 (file)
@@ -22,9 +22,7 @@
 #include <assert.h>
 #include <errno.h>
 #include <string.h>
-#include <sys/epoll.h>
 #include <signal.h>
-#include <sys/signalfd.h>
 #include <sys/wait.h>
 #include <unistd.h>
 #include <sys/poll.h>
@@ -2211,10 +2209,8 @@ int manager_deserialize(Manager *m, FILE *f, FDSet *fds) {
         }
 
 finish:
-        if (ferror(f)) {
+        if (ferror(f))
                 r = -EIO;
-                goto finish;
-        }
 
         assert(m->n_reloading > 0);
         m->n_reloading --;