Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Glasgow Haskell Compiler
Packages
Cabal
Commits
1c0d8ddb
Commit
1c0d8ddb
authored
Mar 31, 2016
by
Edward Z. Yang
Browse files
Warn that inDir is not thread-safe.
Signed-off-by:
Edward Z. Yang
<
ezyang@cs.stanford.edu
>
parent
137075dc
Changes
1
Hide whitespace changes
Inline
Side-by-side
cabal-install/Distribution/Client/Utils.hs
View file @
1c0d8ddb
...
...
@@ -129,6 +129,9 @@ withTempFileName tmpDir template action =
(
\
(
name
,
h
)
->
hClose
h
>>
action
name
)
-- | Executes the action in the specified directory.
--
-- Warning: This operation is NOT thread-safe, because current
-- working directory is a process-global concept.
inDir
::
Maybe
FilePath
->
IO
a
->
IO
a
inDir
Nothing
m
=
m
inDir
(
Just
d
)
m
=
do
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment