1
0
forked from GitHub/gf-core

src/server/gf-server.cabal: compile it as a common library + executables

This commit is contained in:
hallgren
2013-12-17 15:55:14 +00:00
parent c8b8ca33c6
commit e9e919e6e3
5 changed files with 27 additions and 35 deletions

View File

@@ -1,16 +0,0 @@
{-# LANGUAGE CPP #-}
import Control.Concurrent(forkIO)
import Network.FastCGI(runFastCGI,runFastCGIConcurrent')
import PGFService(cgiMain,newPGFCache,stderrToFile,logFile)
import System.IO
main = do stderrToFile logFile
fcgiMain =<< newPGFCache
fcgiMain cache =
#ifndef mingw32_HOST_OS
runFastCGIConcurrent' forkIO 100 (cgiMain cache)
#else
runFastCGI (cgiMain cache)
#endif