SecBSD's official ports repository

This commit is contained in:
purplerain 2023-08-16 22:26:55 +00:00
commit 2c0afcbbf3
Signed by: purplerain
GPG key ID: F42C07F07E2E35B7
64331 changed files with 5339189 additions and 0 deletions

View file

@ -0,0 +1,23 @@
Avoid deadlock due to pthreads design.
--- beaker/synchronization.py.orig Thu Jan 7 22:43:56 2010
+++ beaker/synchronization.py Thu Jan 7 22:50:23 2010
@@ -20,11 +20,14 @@ try:
sys.getwindowsversion()
has_flock = False
except:
- try:
- import fcntl
- has_flock = True
- except ImportError:
+ if sys.platform.startswith('openbsd'):
has_flock = False
+ else:
+ try:
+ import fcntl
+ has_flock = True
+ except ImportError:
+ has_flock = False
from beaker import util
from beaker.exceptions import LockError