]> git.ipfire.org Git - thirdparty/systemd.git/blobdiff - src/rfkill/rfkill.c
tree-wide: warn when sd_notify fails with READY=1 or FDSTOREREMOVE=1
[thirdparty/systemd.git] / src / rfkill / rfkill.c
index bff1a2886be3bd7afca6d3f52ecfd7d0ad68ef00..bca2f3b812298b6fec9afa830d316e5ccf7c96e7 100644 (file)
@@ -317,7 +317,10 @@ static int run(int argc, char *argv[]) {
                         if (!ready) {
                                 /* Notify manager that we are now finished with processing whatever was
                                  * queued */
-                                (void) sd_notify(false, "READY=1");
+                                r = sd_notify(false, "READY=1");
+                                if (r < 0)
+                                        log_warning_errno(r, "Failed to send readiness notification, ignoring: %m");
+
                                 ready = true;
                         }