#3231: Permission denied error with runProcess/openFile
--------------------------+-------------------------------------------------
Reporter: NeilMitchell | Owner:
Type: bug | Status: new
Priority: normal | Milestone:
Component: Compiler | Version: 6.10.2
Severity: normal | Resolution:
Keywords: | Testcase:
Os: Windows | Architecture: Unknown/Multiple
--------------------------+-------------------------------------------------
Comment (by duncan):
Replying to [comment:6 NeilMitchell]:
> In the sleep example, the child process isn't actually using the open
file handle - it was in the original example but that turned out to be
irrelevant.
It doesn't matter if it uses it or not. If the handle is set to be
inheritable then all child processes will get it and hold it open.
So there are apparently two problems:
* waiting for a process to terminate does not appear to be enough to
ensure that handles it had open are now closed.
* `openFile` appears to create handles that are inheritable. The default
should almost certainly be non-inheritable (we have similar issues on unix
but they're less severe because unix lacks strong file locking).
I suggest that both of these need confirming or refuting.
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/3231#comment:7>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs