summaryrefslogtreecommitdiff
path: root/sshd.c
diff options
context:
space:
mode:
authorColin Watson <cjwatson@debian.org>2008-06-21 09:47:05 +0000
committerColin Watson <cjwatson@debian.org>2008-06-21 09:47:05 +0000
commita6df5b7cfd9c6f9f591c2d0bb5f6e9bcfbaaa8a4 (patch)
treef6ff8d7b4109db4971669a0936f67b961613a5f3 /sshd.c
parent00475f115049851f7b4565f9c62672e1dc3d6795 (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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sshd.c b/sshd.c
index ac539d6bb..9097d71ad 100644
--- a/sshd.c
+++ b/sshd.c
@@ -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);