Lines Matching full:process
2 # Module providing the `Process` class which emulates `threading.Thread`
4 # multiprocessing/process.py
35 __all__ = ['Process', 'current_process', 'active_children']
61 Return process object representing the current process
67 Return list of process objects corresponding to live child processes
83 # The `Process` class
86 class Process(object):
88 Process objects represent activity that is run in a separate process
111 Method to be run in sub-process; can be overridden in sub-class
118 Start child process
120 assert self._popen is None, 'cannot start a process twice'
122 'can only start a process object created by current process'
135 Terminate process; sends SIGTERM signal or uses TerminateProcess()
141 Wait until child process terminates
143 assert self._parent_pid == os.getpid(), 'can only join a child process'
144 assert self._popen is not None, 'can only join a started process'
151 Return whether process is alive
155 assert self._parent_pid == os.getpid(), 'can only test a child process'
173 Return whether process is a daemon
180 Set whether process is a daemon
182 assert self._popen is None, 'process has already started'
192 Set authorization key of process
199 Return exit code of process or `None` if it has yet to stop
208 Return identifier (PID) of process or `None` if it has yet to start
256 util.info('child process calling self.run()')
274 sys.stderr.write('Process %s:\n' % self.name)
278 util.info('process exiting with exitcode %d' % exitcode)
296 # Create object representing the main process
299 class _MainProcess(Process):