Skip to content
Snippets Groups Projects
Commit a9861448 authored by Oleg Grenrus's avatar Oleg Grenrus
Browse files

If open files limit >= 4096, pretend it's infinite

parent dc2114a3
No related branches found
No related tags found
No related merge requests found
......@@ -818,8 +818,8 @@ getOpenFilesLimit = return (Just 2048)
getOpenFilesLimit = liftIO $ do
ResourceLimits { softLimit } <- getResourceLimit ResourceOpenFiles
case softLimit of
ResourceLimit n -> return (Just n)
_ -> return Nothing
ResourceLimit n | n >= 0 && n <= 4096 -> return (Just n)
_ -> return Nothing
#endif
hasCabalForGhc :: TestM Bool
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment