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

CloseHandle: invalid argument on Windows #78

Closed
snoyberg opened this issue May 13, 2018 · 2 comments
Closed

CloseHandle: invalid argument on Windows #78

snoyberg opened this issue May 13, 2018 · 2 comments

Comments

@snoyberg
Copy link
Contributor

When working on the fsnotify-conduit test suite, I ran into seemingly unrelated errors on Windows. I was able to reduce it to the following test case:

#!/usr/bin/env stack
-- stack --resolver lts-11.8 script
import System.FSNotify
import System.Directory
import UnliftIO (tryIO, withSystemTempDirectory)

main :: IO ()
main =
  withSystemTempDirectory "fsnotify-test" $ \dir ->
  withManager $ \man -> do
    stop <- watchDir man dir (const True) print
    stop

This results in the output:

 CloseHandle: invalid argument (The handle is invalid.)
@thomasjm
Copy link
Contributor

Thanks for the report @snoyberg -- this fix will go out when I release version 0.3.0.0

@snoyberg
Copy link
Contributor Author

snoyberg commented May 28, 2018 via email

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

No branches or pull requests

2 participants