• Home
  • Raw
  • Download

Lines Matching +full:in +full:- +full:process

2 # Module providing the `Process` class which emulates `threading.Thread`
4 # multiprocessing/process.py
6 # Copyright (c) 2006-2008, R Oudkerk
39 Return process object representing the current process
45 Return list of process objects corresponding to live child processes
53 Return process object representing the parent process
63 for p in list(_children):
68 # The `Process` class
73 Process objects represent activity that is run in a separate process
93 self._name = name or type(self).__name__ + '-' + \
94 ':'.join(str(i) for i in self._identity)
101 raise ValueError("process object is closed")
105 Method to be run in sub-process; can be overridden in sub-class
112 Start child process
115 assert self._popen is None, 'cannot start a process twice'
117 'can only start a process object created by current process'
124 # reference to the process object (see bpo-30775)
130 Terminate process; sends SIGTERM signal or uses TerminateProcess()
137 Terminate process; sends SIGKILL signal or uses TerminateProcess()
144 Wait until child process terminates
147 assert self._parent_pid == os.getpid(), 'can only join a child process'
148 assert self._popen is not None, 'can only join a started process'
155 Return whether process is alive
160 assert self._parent_pid == os.getpid(), 'can only test a child process'
174 Close the Process object.
176 This method releases resources held by the Process object. It is
177 an error to call this method if the child process is still running.
181 raise ValueError("Cannot close a process while it is still running. "
201 Return whether process is a daemon
208 Set whether process is a daemon
210 assert self._popen is None, 'process has already started'
220 Set authorization key of process
227 Return exit code of process or `None` if it has yet to stop
237 Return identifier (PID) of process or `None` if it has yet to start
251 waiting for process termination.
257 raise ValueError("process not started") from None
309 # delay finalization of the old process object until after
312 util.info('child process calling self.run()')
329 sys.stderr.write('Process %s:\n' % self.name)
333 util.info('process exiting with exitcode %d' % exitcode)
361 # Create object representing the parent process
386 Wait until parent process terminates
394 # Create object representing the main process
411 # On MacOSX in a sandbox it may be necessary to use a
412 # different prefix -- see #19478.
414 # Everything in self._config will be inherited by descendant
433 for name, signum in list(signal.__dict__.items()):
434 if name[:3]=='SIG' and '_' not in name:
435 _exitcode_to_name[-signum] = f'-{name}'