]> www.average.org Git - pdns-pipe-nmc.git/commitdiff
set line-buffered mode
authorEugene Crosser <crosser@average.org>
Sun, 30 Mar 2014 18:38:13 +0000 (22:38 +0400)
committerEugene Crosser <crosser@average.org>
Sun, 30 Mar 2014 18:38:13 +0000 (22:38 +0400)
pdns-pipe-nmc.hs

index 603ea987356ca793de89e94b27cad172a02eb918..304e049a9280467234768e5a21b742c63b148a0a 100644 (file)
@@ -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