Skip to content

Commit fe21e29

Browse files
committed
Ensure that Py is masked
1 parent 6567d67 commit fe21e29

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/Python/Internal/Eval.hs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,6 @@ doInializePython = do
330330
let fini st = atomically $ do
331331
writeTVar globalPyState $ st
332332
writeTVar globalPyLock $ LockUnlocked
333-
334333
pure $
335334
(mask_ $ if
336335
-- On multithreaded runtime create bound thread to make
@@ -448,7 +447,7 @@ runPy py
448447
where
449448
-- We check whether interpreter is initialized. Throw exception if
450449
-- it wasn't. Better than segfault isn't it?
451-
go = ensurePyLock $ unsafeRunPy (ensureGIL py)
450+
go = ensurePyLock $ mask_ $ unsafeRunPy (ensureGIL py)
452451

453452
-- | Same as 'runPy' but will make sure that code is run in python's
454453
-- main thread. It's thread in which python's interpreter was

0 commit comments

Comments
 (0)