Message ID | 20130110201654.GU19059@ether.msp.redhat.com (mailing list archive) |
---|---|
State | Deferred, archived |
Headers | show |
Index: multipath-tools-130109/multipathd/main.c =================================================================== --- multipath-tools-130109.orig/multipathd/main.c +++ multipath-tools-130109/multipathd/main.c @@ -1542,8 +1542,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"); }
Fix set_oom_adj() to work correclty if OOM_ADJUST_MIN isn't defined. Signed-off-by: Benjamin Marzinski <bmarzins@redhat.com> --- multipathd/main.c | 4 ++++ 1 file changed, 4 insertions(+) -- dm-devel mailing list dm-devel@redhat.com https://www.redhat.com/mailman/listinfo/dm-devel