summaryrefslogtreecommitdiff
path: root/buildstream/_frontend/app.py
diff options
context:
space:
mode:
Diffstat (limited to 'buildstream/_frontend/app.py')
-rw-r--r--buildstream/_frontend/app.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/buildstream/_frontend/app.py b/buildstream/_frontend/app.py
index 50e1e79b0..89b078166 100644
--- a/buildstream/_frontend/app.py
+++ b/buildstream/_frontend/app.py
@@ -22,6 +22,7 @@ import sys
import resource
import traceback
import datetime
+import logging
from textwrap import TextWrapper
from contextlib import contextmanager
@@ -123,6 +124,8 @@ class App():
if limits[0] != limits[1]:
# Set soft limit to hard limit
resource.setrlimit(resource.RLIMIT_NOFILE, (limits[1], limits[1]))
+ if limits[1] < 50000:
+ logging.warning("Open file hard limit is set to %s, consider raising", limits[1])
# create()
#