chiark / gitweb /
systemctl: fail in the case that no unit files were found
[elogind.git] / src / shared / barrier.c
index 4ac42d023943cd2d76d17b46f4287c9f582e8a7f..4a5544de27d309f0593c34d5fc4e1ccba06d0985 100644 (file)
@@ -257,6 +257,8 @@ static bool barrier_read(Barrier *b, int64_t comp) {
                          * guarantees that exit-abortions do not overwrite real
                          * barriers. */
                         buf = BARRIER_ABORTION;
+                else
+                        continue;
 
                 /* lock if they aborted */
                 if (buf >= (uint64_t)BARRIER_ABORTION) {