Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GHC.IO.Handle.Lock #207

Merged
merged 3 commits into from
Feb 15, 2018
Merged

GHC.IO.Handle.Lock #207

merged 3 commits into from
Feb 15, 2018

Conversation

phadej
Copy link
Contributor

@phadej phadej commented Feb 14, 2018

If we are to use stopgap solution., let's use better one.

@phadej phadej force-pushed the ghc-io-handle-lock branch 2 times, most recently from d2084b2 to 74a1a8c Compare February 14, 2018 21:42
@hvr
Copy link
Member

hvr commented Feb 14, 2018

Indeed, this one's a much better provisional solution as it avoids introducing a new bug (the #205 regression).

import Control.Exception (Exception)
import Data.Typeable

#if defined(solaris2_HOST_OS)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please add || defined(aix_HOST_OS)


----------------------------------------

#if defined(solaris2_HOST_OS)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

here as well

@phadej phadej force-pushed the ghc-io-handle-lock branch 2 times, most recently from 921650c to ef5f713 Compare February 14, 2018 22:53
@phadej
Copy link
Contributor Author

phadej commented Feb 14, 2018

aix disabled too.

@phadej phadej force-pushed the ghc-io-handle-lock branch from ef5f713 to a593d70 Compare February 14, 2018 23:53
Does d91afd3 in better way

See also haskell/cabal#5072 for discussion
about locking. TL;DR if we want to use fcntl, we have to make proper
implementation and audit it.

The directory creation fallback will be used on at least Solaris
and AIX
@phadej phadej force-pushed the ghc-io-handle-lock branch from a593d70 to 2a1a6cc Compare February 15, 2018 00:04
@phadej phadej force-pushed the ghc-io-handle-lock branch from 346ef3d to a457de5 Compare February 15, 2018 00:09
@hvr hvr merged commit 51e02d9 into haskell:master Feb 15, 2018
@phadej phadej deleted the ghc-io-handle-lock branch February 15, 2018 08:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants