From d2253e15dd405b3fbf15663aa02ab1f5ffa56306 Mon Sep 17 00:00:00 2001 From: Ben Sima Date: Sat, 15 Nov 2025 13:30:04 -0500 Subject: Improve terminalLock comment for clarity Clarify that the mutex protects against ncurses thread-safety issues that cause segfaults during concurrent builds. This commit also forces a new Nix derivation hash to ensure the mutex fix is actually used (previous builds were cached with the old version). --- Omni/Log/Concurrent.hs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 ()) -- cgit v1.2.3