Skip to content
Snippets Groups Projects
Commit cd2a071d authored by ian@well-typed.com's avatar ian@well-typed.com
Browse files

Fix signals004 on OS X 32

parent ef1604f2
No related branches found
No related tags found
No related merge requests found
import Control.Concurrent
import System.Info
import System.Posix
import Control.Monad
......@@ -8,7 +9,11 @@ import Control.Monad
installers = 50
-- too many signals overflows the IO manager's pipe buffer, this seems
-- to be the most we can get away with:
sigs = 400
sigs = if os == "darwin"
then 30 -- Otherwise we get "lost signal due to full pipe: 30"
-- errors after the timeout kills the hung process
-- for the threaded{1,2} ways
else 400
main = do
c <- newChan
......
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