blob: 0f584dbca8e538717faf6033110dc9c06bf743b4 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
--- third_party/python/futures/concurrent/futures/process.py.orig 2017-04-11 04:15:19 UTC
+++ third_party/python/futures/concurrent/futures/process.py
@@ -247,7 +247,11 @@ def _check_system_limits():
_system_limits_checked = True
try:
import os
- nsems_max = os.sysconf("SC_SEM_NSEMS_MAX")
+ if sys.platform.startswith('freebsd'):
+ # sem(4) confuses sysconf(3) on FreeBSD < 11.1
+ nsems_max = -1
+ else:
+ nsems_max = os.sysconf("SC_SEM_NSEMS_MAX")
except (AttributeError, ValueError):
# sysconf not available or setting not available
return
|