Skip to content

Commit 2324ac0

Browse files
authored
Merge pull request #25 from MillerCM/mac-oserror-fix
OSerror on Mac fix
2 parents 2d51364 + 5c3288d commit 2324ac0

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

bottlereact.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,11 @@
5858
__ALL__ = ['BottleReact','__version__']
5959
BABEL_CORE = 'https://cdnjs.cloudflare.com/ajax/libs/babel-standalone/6.26.0/babel.min.js'
6060

61+
try:
62+
libc = ctypes.CDLL("libc.so.6")
63+
except OSError:
64+
libc = ctypes.CDLL("libc.dylib")
6165

62-
libc = ctypes.CDLL("libc.so.6")
6366
def set_pdeathsig(sig = signal.SIGTERM):
6467
def callable():
6568
return libc.prctl(1, sig)

0 commit comments

Comments
 (0)