]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MINOR: limits: fix check_if_maxsock_permitted description
authorValentine Krasnobaeva <vkrasnobaeva@haproxy.com>
Tue, 18 Mar 2025 15:34:12 +0000 (16:34 +0100)
committerWilly Tarreau <w@1wt.eu>
Tue, 18 Mar 2025 16:38:04 +0000 (17:38 +0100)
Fix typo in check_if_maxsock_permitted() description.

src/limits.c

index e9ce8b8d736ea124b1689aaf15cab88d147edbd1..8e0b0ff6fd7248200bcca714efcd2ec34917f5e8 100644 (file)
@@ -227,7 +227,7 @@ int compute_ideal_maxsock(int maxconn)
 
 /* Tests if it is possible to set the current process's RLIMIT_NOFILE to
  * <maxsock>, then sets it back to the previous value. Returns non-zero if the
- * value is accepted, non-zero otherwise. This is used to determine if an
+ * value is accepted, zero otherwise. This is used to determine if an
  * automatic limit may be applied or not. When it is not, the caller knows that
  * the highest we can do is the rlim_max at boot. In case of error, we return
  * that the setting is possible, so that we defer the error processing to the