From b9b353795bec6ea9155d086e109485c960ee5397 Mon Sep 17 00:00:00 2001 From: hallgren Date: Tue, 27 Sep 2011 18:59:54 +0000 Subject: Server-side support for example-based grammar writing --- src/example-based/exb-fcgi.hs | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 src/example-based/exb-fcgi.hs (limited to 'src/example-based/exb-fcgi.hs') diff --git a/src/example-based/exb-fcgi.hs b/src/example-based/exb-fcgi.hs new file mode 100644 index 000000000..54f1872d0 --- /dev/null +++ b/src/example-based/exb-fcgi.hs @@ -0,0 +1,15 @@ +{-# LANGUAGE CPP #-} +import Control.Concurrent(forkIO) +import Network.FastCGI(runFastCGI,runFastCGIConcurrent') +import ExampleService(cgiMain,newPGFCache) + +main = do --stderrToFile logFile + fcgiMain =<< newPGFCache + + +fcgiMain cache = +#ifndef mingw32_HOST_OS + runFastCGIConcurrent' forkIO 100 (cgiMain cache) +#else + runFastCGI (cgiMain cache) +#endif -- cgit v1.2.3