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:
parent
bd91f23acf
commit
4096fcde09
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user