This is the approach that I went with, thanks.
On Nov 22, 2005, at 9:26 AM, Bulat Ziganshin wrote:
can you just send Die message through the same Chan? it will be best
solution. you can even write:
--
http://wagerlabs.com/
___
Haskell-Cafe mail
Hello Joel,
Tuesday, November 22, 2005, 12:03:55 PM, you wrote:
JR> I think it's much simpler than that. I just changed the trace
JR> function to send Just String down the channel. Whenever I send
JR> Nothing (from waitForChildren) the logger just exits. Simple change
JR> in two places, no ne
Hello Joel,
Tuesday, November 22, 2005, 1:41:38 AM, you wrote:
JR> logger h die =
JR> do empty <- isEmptyChan parent
JR> unless empty $ do x <- readChan parent
JR> putStrLn x
JR> hPutStrLn h x
JR> alive <- isEmptyMVar die
JR