assistant: The ConfigMonitor left one zombie behind each time it checked for changes, now fixed.

This commit is contained in:
Joey Hess 2013-03-18 22:09:51 -04:00
parent b543842a7f
commit a5dded0401
4 changed files with 19 additions and 5 deletions

View file

@ -94,6 +94,12 @@ pipeNullSplit params repo = do
where
sep = "\0"
pipeNullSplitStrict :: [CommandParam] -> Repo -> IO [String]
pipeNullSplitStrict params repo = do
s <- pipeReadStrict params repo
return $ filter (not . null) $ split sep s
where
sep = "\0"
pipeNullSplitZombie :: [CommandParam] -> Repo -> IO [String]
pipeNullSplitZombie params repo = leaveZombie <$> pipeNullSplit params repo