#3231: Permission denied error with runProcess/openFile
---------------------------------+------------------------------------------
Reporter: NeilMitchell | Owner:
Type: bug | Status: new
Priority: normal | Milestone:
Component: Runtime System | Version: 6.10.2
Severity: major | Resolution:
Keywords: | Difficulty: Unknown
Testcase: | Os: Windows
Architecture: Unknown/Multiple |
---------------------------------+------------------------------------------
Comment (by simonmar):
It's pretty clear we need to get this resolved. Here's my proposed plan,
please tell me if any of this will have untoward consequences:
* we use `O_NOHINHERIT` when opening files with `System.IO.openFile`.
* when `close_fds` is `True`, and we are not redirecting any standard
`HANDLE`s, we set `bInheritHandles` to `FALSE` when calling
`CreateProcess`
* we document the fact that `close_fds` only works on Windows when no
`Handles` are being redirected.
* we audit the libraries for other places that might need to create non-
inheritable `HANDLE`s.
We can aim to get these fixes into 6.10.4, but since 6.10.4 is supposed to
be the last stable release on the 6.10 branch (like 6.10.3 was :-) we'll
need a lot of testing.
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/3231#comment:17>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
Glasgow-haskell-bugs@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs