changeset 616:41133baea90d

STUB: python/multiproc.py
author Jeff Hammel <k0scist@gmail.com>
date Sun, 02 Feb 2014 19:42:11 -0800
parents 6db42d965f0e
children 3da0a7caf07e
files python/multiproc.py
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/python/multiproc.py	Sun Feb 02 18:44:05 2014 -0800
+++ b/python/multiproc.py	Sun Feb 02 19:42:11 2014 -0800
@@ -186,9 +186,10 @@
             if options.sleep:
                 time.sleep(options.sleep)
 
-            if process_output is not None:
+            if process_output is None:
                 # process the output with ``.read()`` call
-                proc.read(output_processor)
+                read = proc.read()
+                output_processor(read)
 
     # correctness tests
     assert proc.end is not None