diff options
author | Linus Nordberg <linus@nordu.net> | 2016-11-28 00:01:33 +0100 |
---|---|---|
committer | Linus Nordberg <linus@nordu.net> | 2016-11-28 00:01:33 +0100 |
commit | 0ab46454d49fdc76a471c4142c35c6a5af40c828 (patch) | |
tree | d09574993f7750665d4a5dacd4501ee368014b90 /tools | |
parent | fd43701eb565f73389029a4f5ee20a1163729aa4 (diff) |
Don't pass 0 to multiprocessing.Pipe.poll().
Documentation says to pass nothing for no blocking.
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/merge_fetch.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/merge_fetch.py b/tools/merge_fetch.py index 801f9cf..e0a6243 100755 --- a/tools/merge_fetch.py +++ b/tools/merge_fetch.py @@ -119,7 +119,7 @@ def merge_fetch_worker(args, localconfig, storagenode, pipe): to_fetch = set() while True: ## Read all messages from parent. - while pipe.poll(0): + while pipe.poll(): msg = pipe.recv() if len(msg) < 2: continue @@ -201,7 +201,7 @@ def merge_fetch_parallel(args, config, localconfig): storagenodes[name]]) continue logging.info("polling %s", name) - while pipe.poll(0): + while pipe.poll(): msg = pipe.recv() if len(msg) < 2: continue |