forked from GitHub/gf-core
the pgf-server is single-threaded on Windows
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
{-# LANGUAGE DeriveDataTypeable #-}
|
{-# LANGUAGE DeriveDataTypeable, CPP #-}
|
||||||
|
|
||||||
import PGF (PGF)
|
import PGF (PGF)
|
||||||
import qualified PGF
|
import qualified PGF
|
||||||
@@ -26,7 +26,11 @@ logFile = "pgf-error.log"
|
|||||||
main :: IO ()
|
main :: IO ()
|
||||||
main = do stderrToFile logFile
|
main = do stderrToFile logFile
|
||||||
cache <- newCache PGF.readPGF
|
cache <- newCache PGF.readPGF
|
||||||
|
#ifndef mingw32_HOST_OS
|
||||||
runFastCGIConcurrent' forkIO 100 (handleErrors (handleCGIErrors (cgiMain cache)))
|
runFastCGIConcurrent' forkIO 100 (handleErrors (handleCGIErrors (cgiMain cache)))
|
||||||
|
#else
|
||||||
|
runFastCGI (handleErrors (handleCGIErrors (cgiMain cache)))
|
||||||
|
#endif
|
||||||
|
|
||||||
cgiMain :: Cache PGF -> CGI CGIResult
|
cgiMain :: Cache PGF -> CGI CGIResult
|
||||||
cgiMain cache =
|
cgiMain cache =
|
||||||
|
|||||||
Reference in New Issue
Block a user