diff options
| author | hallgren <hallgren@chalmers.se> | 2010-11-26 14:30:51 +0000 |
|---|---|---|
| committer | hallgren <hallgren@chalmers.se> | 2010-11-26 14:30:51 +0000 |
| commit | 72d2d9b204568b3683c29dea0ae794d3a524f2ee (patch) | |
| tree | f392cb3859e2a173d17a820ae3a6294f4386a755 /src/server/FastCGIUtils.hs | |
| parent | 75ad59b1217e4b81d19fed6eadf4fc80d3ebd2f1 (diff) | |
Split pgf-server into pgf-fcgi and pgf-http.
The dependency on the fastcgi package made pgf-server difficult to compile, so
it is now split into
- pgf-fgci (main module in pgf-fcgi.hs), which is built only if fastcgi is
already installed or if you turn on the fastcgi flag (e.g. by doing
'cabal install -f fastcgi').
- pgf-http (main module in pgf-http.hs) which is always built (and hopefully
has no problematic dependencies.)
The modules FastCGIUtils and PGFService no longer depend on fastcgi.
Diffstat (limited to 'src/server/FastCGIUtils.hs')
| -rw-r--r-- | src/server/FastCGIUtils.hs | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/src/server/FastCGIUtils.hs b/src/server/FastCGIUtils.hs index dd1a567d4..0bae305c5 100644 --- a/src/server/FastCGIUtils.hs +++ b/src/server/FastCGIUtils.hs @@ -1,5 +1,5 @@ {-# LANGUAGE DeriveDataTypeable, CPP #-} -module FastCGIUtils (initFastCGI, loopFastCGI, +module FastCGIUtils (--initFastCGI, loopFastCGI, throwCGIError, handleCGIErrors, stderrToFile, outputJSONP, @@ -13,7 +13,6 @@ import Control.Monad import Data.Dynamic import Data.IORef import Prelude hiding (catch) -import System.Directory import System.Environment import System.Exit import System.IO @@ -21,15 +20,15 @@ import System.IO.Unsafe #ifndef mingw32_HOST_OS import System.Posix #endif -import System.Time -import Network.FastCGI +--import Network.FastCGI +import Network.CGI import Text.JSON -import qualified Codec.Binary.UTF8.String as UTF8 (encodeString, decodeString) +import qualified Codec.Binary.UTF8.String as UTF8 (encodeString) import qualified Data.ByteString.Lazy as BS - +{- -- There are used in MorphoService.hs, but not in PGFService.hs initFastCGI :: IO () initFastCGI = installSignalHandlers @@ -40,7 +39,7 @@ loopFastCGI f = restartIfModified) `catchAborted` logError "Request aborted" loopFastCGI f - +-} -- Signal handling for FastCGI programs. |
