diff options
Diffstat (limited to 'Omni/Log')
| -rw-r--r-- | Omni/Log/Concurrent.hs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Omni/Log/Concurrent.hs b/Omni/Log/Concurrent.hs index b43c8ef..d4969eb 100644 --- a/Omni/Log/Concurrent.hs +++ b/Omni/Log/Concurrent.hs @@ -43,7 +43,8 @@ namespaceLines :: IORef (Map Namespace Int) namespaceLines = unsafePerformIO (newIORef Map.empty) -- | Global lock for all terminal operations --- ANSI terminal library is not thread-safe, so we must serialize all calls +-- ANSI terminal library (ncurses) is not thread-safe, so we must serialize all calls +-- to prevent segfaults during concurrent builds {-# NOINLINE terminalLock #-} terminalLock :: MVar () terminalLock = unsafePerformIO (newMVar ()) |
