explicitly wait for a git process
Eliminate a zombie that was only cleaned up by the later zombie cleanup code. This is still not ideal, it would be cleaner if it used conduit or something, and if the thread gets killed before waiting, it won't stop the process. Only remaining zombies are in CmdLine.Seek
This commit is contained in:
parent
b5b1aeacba
commit
ca454c47f2
4 changed files with 25 additions and 22 deletions
|
@ -134,12 +134,6 @@ pipeNullSplitStrict params repo = do
|
|||
s <- pipeReadStrict params repo
|
||||
return $ filter (not . S.null) $ S.split 0 s
|
||||
|
||||
pipeNullSplitZombie :: [CommandParam] -> Repo -> IO [L.ByteString]
|
||||
pipeNullSplitZombie params repo = leaveZombie <$> pipeNullSplit params repo
|
||||
|
||||
pipeNullSplitZombie' :: [CommandParam] -> Repo -> IO [S.ByteString]
|
||||
pipeNullSplitZombie' params repo = leaveZombie <$> pipeNullSplit' params repo
|
||||
|
||||
{- Doesn't run the cleanup action. A zombie results. -}
|
||||
leaveZombie :: (a, IO Bool) -> a
|
||||
leaveZombie = fst
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue