mirror of
https://github.com/ValveSoftware/Proton.git
synced 2025-01-29 06:58:16 +03:00
parent
4b0d481450
commit
b183fae4b7
6
proton
6
proton
@ -11,6 +11,7 @@ import os
|
|||||||
import shutil
|
import shutil
|
||||||
import errno
|
import errno
|
||||||
import platform
|
import platform
|
||||||
|
import resource
|
||||||
import stat
|
import stat
|
||||||
import subprocess
|
import subprocess
|
||||||
import sys
|
import sys
|
||||||
@ -1464,6 +1465,11 @@ class Session:
|
|||||||
if var in self.env:
|
if var in self.env:
|
||||||
self.log_file.write("Effective " + var + ": " + self.env[var] + "\n")
|
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.write("======================\n")
|
||||||
self.log_file.flush()
|
self.log_file.flush()
|
||||||
else:
|
else:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user