chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
core: issue error on oom we can do nothing about
[elogind.git]
/
src
/
core
/
manager.c
diff --git
a/src/core/manager.c
b/src/core/manager.c
index 3e87aa969bd3c32e2dd795592f888908600519d9..7d573f3abb3416ca15270e1712869d63a3fd3b5f 100644
(file)
--- a/
src/core/manager.c
+++ b/
src/core/manager.c
@@
-3092,9
+3092,10
@@
void manager_update_failed_units(Manager *m, Unit *u, bool failed) {
size = set_size(m->failed_units);
- if (failed)
- set_put(m->failed_units, u);
- else
+ if (failed) {
+ if (set_put(m->failed_units, u) < 0)
+ log_oom();
+ } else
set_remove(m->failed_units, u);
if (set_size(m->failed_units) != size)