comparison python/multiproc.py @ 612:839dfd35d567

STUB: python/multiproc.py
author Jeff Hammel <k0scist@gmail.com>
date Sun, 02 Feb 2014 15:33:18 -0800
parents 8e23bbc9c197
children bf3f8bc6d1b3
comparison
equal deleted inserted replaced
611:8e23bbc9c197 612:839dfd35d567
66 while self.poll() is None: 66 while self.poll() is None:
67 67
68 # check for timeout 68 # check for timeout
69 curr_time = time.time() 69 curr_time = time.time()
70 run_time = curr_time - self.start 70 run_time = curr_time - self.start
71 if run_time > maxtime: 71 if maxtime is not None and run_time > maxtime:
72 self.kill() 72 self.kill()
73 self._finalize(process_output) 73 self._finalize(process_output)
74 return 74 return
75 75
76 # read from output buffer 76 # read from output buffer