1
0
mirror of https://github.com/systemd/systemd.git synced 2024-12-22 17:35:35 +03:00

logind: use RET_GATHER() at one more place

This commit is contained in:
Lennart Poettering 2024-10-22 18:11:25 +02:00
parent bd91f23acf
commit 4096fcde09

View File

@ -889,14 +889,11 @@ int session_send_lock_all(Manager *m, bool lock) {
assert(m);
HASHMAP_FOREACH(session, m->sessions) {
int k;
if (!SESSION_CLASS_CAN_LOCK(session->class))
continue;
k = session_send_lock(session, lock);
if (k < 0)
r = k;
RET_GATHER(r, session_send_lock(session, lock));
}
return r;