We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 2d51364 + 5c3288d commit 2324ac0Copy full SHA for 2324ac0
1 file changed
bottlereact.py
@@ -58,8 +58,11 @@
58
__ALL__ = ['BottleReact','__version__']
59
BABEL_CORE = 'https://cdnjs.cloudflare.com/ajax/libs/babel-standalone/6.26.0/babel.min.js'
60
61
+try:
62
+ libc = ctypes.CDLL("libc.so.6")
63
+except OSError:
64
+ libc = ctypes.CDLL("libc.dylib")
65
-libc = ctypes.CDLL("libc.so.6")
66
def set_pdeathsig(sig = signal.SIGTERM):
67
def callable():
68
return libc.prctl(1, sig)
0 commit comments