patch-openbsd-compat_port-linux_c 634 B

1234567891011121314
  1. avoid following warning in syslog:
  2. sshd (1111): /proc/1111/oom_adj is deprecated, please use /proc/1111/oom_score_adj instead.
  3. --- openssh-5.6p1.orig/openbsd-compat/port-linux.c 2010-03-01 05:52:50.000000000 +0100
  4. +++ openssh-5.6p1/openbsd-compat/port-linux.c 2011-01-27 19:16:12.000000000 +0100
  5. @@ -208,7 +208,7 @@ ssh_selinux_change_context(const char *n
  6. #endif /* WITH_SELINUX */
  7. #ifdef LINUX_OOM_ADJUST
  8. -#define OOM_ADJ_PATH "/proc/self/oom_adj"
  9. +#define OOM_ADJ_PATH "/proc/self/oom_score_adj"
  10. /*
  11. * The magic "don't kill me", as documented in eg:
  12. * http://lxr.linux.no/#linux+v2.6.32/Documentation/filesystems/proc.txt