2005-09-27 | paulb | raw files shortlog changelog graph | [project @ 2005-09-27 18:23:46 by paulb] Added waiting for created processes. | |
tests/start_indexer.py (file) |
1.1 --- a/tests/start_indexer.py Tue Sep 27 18:05:09 2005 +0000 1.2 +++ b/tests/start_indexer.py Tue Sep 27 18:23:46 2005 +0000 1.3 @@ -52,6 +52,14 @@ 1.4 1.5 searcher = get_searcher(filenames, window_size) 1.6 1.7 + # Wait for all created processes to terminate. 1.8 + 1.9 + try: 1.10 + while 1: 1.11 + os.wait() 1.12 + except OSError: 1.13 + pass 1.14 + 1.15 # Present a user interface. 1.16 1.17 while 1: