diff options
author | Colin Watson <cjwatson@debian.org> | 2008-06-21 09:47:05 +0000 |
---|---|---|
committer | Colin Watson <cjwatson@debian.org> | 2008-06-21 09:47:05 +0000 |
commit | a6df5b7cfd9c6f9f591c2d0bb5f6e9bcfbaaa8a4 (patch) | |
tree | f6ff8d7b4109db4971669a0936f67b961613a5f3 /sshd.c | |
parent | 00475f115049851f7b4565f9c62672e1dc3d6795 (diff) |
Clarify documentation of SSHD_OOM_ADJUST, and make setting it to the
empty string actually skip adjustment as intended (closes: #487325).
Diffstat (limited to 'sshd.c')
-rw-r--r-- | sshd.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -921,7 +921,7 @@ oom_adjust_startup(void) | |||
921 | { | 921 | { |
922 | const char *oom_adj = getenv("SSHD_OOM_ADJUST"); | 922 | const char *oom_adj = getenv("SSHD_OOM_ADJUST"); |
923 | 923 | ||
924 | if (!oom_adj) | 924 | if (!oom_adj || !*oom_adj) |
925 | return; | 925 | return; |
926 | oom_adj_get(oom_adj_save, sizeof(oom_adj_save)); | 926 | oom_adj_get(oom_adj_save, sizeof(oom_adj_save)); |
927 | oom_adj_set(oom_adj); | 927 | oom_adj_set(oom_adj); |