device-mapper-multipath/0021-RH-fix-oom-adj.patch
Benjamin Marzinski 57ec838e30 device-mapper-multipath-0.4.9-34
Add 0021-RH-fix-oom-adj.patch
  * don't use OOM_ADJUST_MIN unless you're sure it's defined
2012-10-23 22:06:46 +00:00

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");
}