57ec838e30
Add 0021-RH-fix-oom-adj.patch * don't use OOM_ADJUST_MIN unless you're sure it's defined
22 lines
540 B
Diff
22 lines
540 B
Diff
---
|
|
multipathd/main.c | 4 ++++
|
|
1 file changed, 4 insertions(+)
|
|
|
|
Index: multipath-tools-120821/multipathd/main.c
|
|
===================================================================
|
|
--- multipath-tools-120821.orig/multipathd/main.c
|
|
+++ multipath-tools-120821/multipathd/main.c
|
|
@@ -1568,8 +1568,12 @@ set_oom_adj (void)
|
|
strerror(errno));
|
|
return;
|
|
}
|
|
+#ifdef OOM_ADJUST_MIN
|
|
file = "/proc/self/oom_adj";
|
|
score = OOM_ADJUST_MIN;
|
|
+#else
|
|
+ retry = 0;
|
|
+#endif
|
|
} while (retry--);
|
|
condlog(0, "couldn't adjust oom score");
|
|
}
|