Lines Matching refs:child
67 def wait(self, child):
68 """Wait for child to finish, ignoring EINTR."""
71 child.wait()
94 child = ignoring_eintr(subprocess.Popen, ['kill', '-HUP', str(pid)])
95 if child:
96 self.wait(child)
106 del child
108 child = subprocess.Popen(['kill', '-USR1', str(pid)])
110 self.wait(child)
119 child = ignoring_eintr(subprocess.Popen, ['kill', '-USR2', str(pid)])
120 if child:
121 self.wait(child) # Nothing should happen.
147 # This function spawns a child process to insulate the main
149 # communicates with that child process over a pipe and
150 # re-raises information about any exceptions the child
155 child = os.fork()
156 if child == 0:
157 # In the child process; run the test and report results
184 os.kill(child, signal.SIGKILL)
312 # Child code: sleep to give the parent enough time to enter the
316 # parent process before the child exits. If the child exits
328 # Make sure the child is eventually reaped, else it'll be a
332 # Close the write end of the pipe. The child has a copy, so
333 # it's not really closed until the child exits. We need it to
334 # close when the child exits so that in the non-interrupt case