chiark / gitweb /
fsckd: make use of safe_close()'s return value
authorLennart Poettering <lennart@poettering.net>
Mon, 9 Mar 2015 17:16:20 +0000 (18:16 +0100)
committerLennart Poettering <lennart@poettering.net>
Mon, 9 Mar 2015 17:16:20 +0000 (18:16 +0100)
src/fsckd/fsckd.c

index 834476c..9522fd7 100644 (file)
@@ -122,8 +122,7 @@ static void remove_client(Client **first, Client *item) {
 }
 
 static void on_plymouth_disconnect(Manager *m) {
-        safe_close(m->plymouth_fd);
-        m->plymouth_fd = -1;
+        m->plymouth_fd = safe_close(m->plymouth_fd);
         m->plymouth_cancel_sent = false;
 }