From: Eugene Crosser Date: Sun, 30 Mar 2014 18:38:13 +0000 (+0400) Subject: set line-buffered mode X-Git-Tag: 0.9.0.0~104 X-Git-Url: http://average.org/gitweb/?a=commitdiff_plain;h=85a22c59d0638770076d5450555cab524e2e504d;p=pdns-pipe-nmc.git set line-buffered mode --- diff --git a/pdns-pipe-nmc.hs b/pdns-pipe-nmc.hs index 603ea98..304e049 100644 --- a/pdns-pipe-nmc.hs +++ b/pdns-pipe-nmc.hs @@ -2,6 +2,7 @@ module Main where +import System.IO import Control.Monad import qualified Data.ByteString.Char8 as C (pack, unpack) import qualified Data.ByteString.Lazy.Char8 as L (pack, unpack) @@ -74,6 +75,8 @@ main = do cfg <- readConfig confFile + hSetBuffering stdin LineBuffering + hSetBuffering stdout LineBuffering ver <- do let loopErr e = forever $ do