proton: Add documentation URL for file descriptor limit warning.

This commit is contained in:
Esme Povirk 2024-07-30 21:32:15 +00:00
parent 86c2c1e2a1
commit f5618038c8

2
proton
View File

@ -1487,7 +1487,7 @@ class Session:
# check for low fd limit
_soft_limit, hard_limit = resource.getrlimit(resource.RLIMIT_NOFILE)
if hard_limit < 524288:
self.log_file.write(f"WARNING: Low file descriptor limit: {hard_limit}\n")
self.log_file.write(f"WARNING: Low file descriptor limit: {hard_limit} (see https://github.com/ValveSoftware/Proton/wiki/File-Descriptors)\n")
self.log_file.write("======================\n")
self.log_file.flush()