summaryrefslogtreecommitdiff
path: root/www/firefox/patches/patch-python_futures_concurrent_futures_process.py
diff options
context:
space:
mode:
Diffstat (limited to 'www/firefox/patches/patch-python_futures_concurrent_futures_process.py')
-rw-r--r--www/firefox/patches/patch-python_futures_concurrent_futures_process.py17
1 files changed, 17 insertions, 0 deletions
diff --git a/www/firefox/patches/patch-python_futures_concurrent_futures_process.py b/www/firefox/patches/patch-python_futures_concurrent_futures_process.py
new file mode 100644
index 00000000000..2152bd7b5ea
--- /dev/null
+++ b/www/firefox/patches/patch-python_futures_concurrent_futures_process.py
@@ -0,0 +1,17 @@
+$NetBSD: patch-python_futures_concurrent_futures_process.py,v 1.1 2017/04/27 01:49:47 ryoon Exp $
+
+--- python/futures/concurrent/futures/process.py.orig 2017-04-11 04:15:19.000000000 +0000
++++ 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