1
0
forked from GitHub/gf-core

the pgf-server is single-threaded on Windows

This commit is contained in:
krasimir
2009-01-25 22:04:59 +00:00
parent 904282fb87
commit 7dfc17cd98

View File

@@ -1,4 +1,4 @@
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveDataTypeable, CPP #-}
import PGF (PGF)
import qualified PGF
@@ -26,7 +26,11 @@ logFile = "pgf-error.log"
main :: IO ()
main = do stderrToFile logFile
cache <- newCache PGF.readPGF
#ifndef mingw32_HOST_OS
runFastCGIConcurrent' forkIO 100 (handleErrors (handleCGIErrors (cgiMain cache)))
#else
runFastCGI (handleErrors (handleCGIErrors (cgiMain cache)))
#endif
cgiMain :: Cache PGF -> CGI CGIResult
cgiMain cache =