diff options
author | Joey Hess <joey@kitenet.net> | 2011-02-13 00:50:09 -0400 |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2011-02-13 00:50:09 -0400 |
commit | c319a336a3829b2f613a86725603c4b2e8837476 (patch) | |
tree | 6a3fc15c4f5a1f2bea8c2656279dbd23b7eaee15 /CmdLine.hs | |
parent | 9806af73686259bf400222df1636cf3987b1ff76 (diff) |
Fix test suite to reap zombies.
I had not taken into account that the code was written to run git and leave
zombies, for performance/laziness reasons, when I wrote the test suite.
So rather than the typical 1 zombie process that git-annex develops, test
developed dozens. Caused problems on system with low process limits.
Added a reap function to GitRepo, that waits for any zombie child processes.
Diffstat (limited to 'CmdLine.hs')
-rw-r--r-- | CmdLine.hs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/CmdLine.hs b/CmdLine.hs index d65739791..475ca99e7 100644 --- a/CmdLine.hs +++ b/CmdLine.hs @@ -101,4 +101,7 @@ shutdown = do unless (q == GitQueue.empty) $ do showSideAction "Recording state in git..." Annex.queueRun + + liftIO $ Git.reap + return True |