mirror of
https://github.com/ValveSoftware/Proton.git
synced 2024-12-27 07:05:46 +03:00
parent
7fa4b63735
commit
a441af6e28
6
proton
6
proton
@ -9,6 +9,7 @@ import os
|
||||
import shutil
|
||||
import errno
|
||||
import platform
|
||||
import resource
|
||||
import stat
|
||||
import subprocess
|
||||
import sys
|
||||
@ -1481,6 +1482,11 @@ class Session:
|
||||
if var in self.env:
|
||||
self.log_file.write("Effective " + var + ": " + self.env[var] + "\n")
|
||||
|
||||
# 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("======================\n")
|
||||
self.log_file.flush()
|
||||
else:
|
||||
|
Loading…
Reference in New Issue
Block a user