SecBSD's official ports repository
This commit is contained in:
commit
2c0afcbbf3
64331 changed files with 5339189 additions and 0 deletions
23
www/py-beaker/patches/patch-beaker_synchronization_py
Normal file
23
www/py-beaker/patches/patch-beaker_synchronization_py
Normal 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
|
Loading…
Add table
Add a link
Reference in a new issue