Lines Matching refs:proc
27 def kill_on_error(proc): argument
29 with proc:
31 yield proc
33 proc.kill()
93 for proc in processes:
94 proc.wait()
104 proc = self.new_sleep_process()
105 wait_func(proc.pid)
107 proc.wait()
138 proc = self.subprocess(code, str(wr), pass_fds=[wr])
139 with kill_on_error(proc):
143 self.assertEqual(proc.wait(), 0)
175 proc = self.subprocess(code, str(rd), pass_fds=[rd])
176 with kill_on_error(proc):
181 self.assertEqual(proc.wait(), 0)
217 proc = self.subprocess(code, str(fd), pass_fds=[fd])
218 with kill_on_error(proc):
222 self.assertEqual(proc.wait(), 0)
267 proc = self.subprocess(code, str(fd), pass_fds=[fd])
268 with kill_on_error(proc):
275 self.assertEqual(proc.wait(), 0)
308 proc = self.subprocess(code)
309 with kill_on_error(proc):
312 self.assertEqual(proc.wait(), 0)
344 proc = self.subprocess(code)
345 with kill_on_error(proc):
347 self.assertEqual(proc.wait(), 0)
410 proc = self.subprocess(code)
411 with kill_on_error(proc):
415 self.assertEqual(proc.wait(), 0)
500 proc = self.subprocess(code)
501 with kill_on_error(proc):
520 proc.wait()