chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d357562
)
core: issue error on oom we can do nothing about
author
Zbigniew Jędrzejewski-Szmek
<zbyszek@in.waw.pl>
Sat, 14 Mar 2015 02:10:06 +0000
(21:10 -0500)
committer
Zbigniew Jędrzejewski-Szmek
<zbyszek@in.waw.pl>
Sat, 14 Mar 2015 03:42:16 +0000
(23:42 -0400)
CID #
1287142
.
src/core/manager.c
patch
|
blob
|
history
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)