
#8108: getGroupEntryForID in multi-threaded applications -------------------------------------+------------------------------------ Reporter: redneb | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: libraries/unix | Version: 7.6.3 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: Unknown/Multiple Type of failure: Runtime crash | Difficulty: Unknown Test Case: | Blocked By: Blocking: | Related Tickets: -------------------------------------+------------------------------------ Comment (by redneb): And here's a patch that fixes the problem. The patch unifies even more the code for getGroupEntryForID, getGroupEntryForName, getUserEntryForID and getUserEntryForName and fixes the issue for all of them. As a side-effect of that unification, there is a tiny user visible change in the behavior of those functions: if they don't find what are they looking for (group id, user name etc), they now all fail with isDoesNotExistError. Previously, only getGroupEntryForName and getUserEntryForName would throw that error. getGroupEntryForID and getUserEntryForID would throw a generic IOError. I think this is a desirable change. The patch also updates the documentation to reflect that change. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8108#comment:1 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler