We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 535f41d commit e8cd369Copy full SHA for e8cd369
cabal-install/Distribution/Client/Utils.hs
@@ -129,6 +129,9 @@ withTempFileName tmpDir template action =
129
(\(name, h) -> hClose h >> action name)
130
131
-- | Executes the action in the specified directory.
132
+--
133
+-- Warning: This operation is NOT thread-safe, because current
134
+-- working directory is a process-global concept.
135
inDir :: Maybe FilePath -> IO a -> IO a
136
inDir Nothing m = m
137
inDir (Just d) m = do
0 commit comments