Lines Matching defs:process
32 from . import process
82 # Function for communication with a manager's server process
136 # Server which is run in a process controlled by a manager
141 Server class which runs in a process controlled by a manager object
152 self.authkey = process.AuthenticationString(authkey)
169 process.current_process()._manager_server = self
240 Handle requests from the proxies in a particular process/thread
362 Shutdown this process
458 # Two-step process in case the object turns out to contain other
502 authkey = process.current_process().authkey
504 self._authkey = process.AuthenticationString(authkey)
529 Connect manager object to the server process
538 Spawn a server process for this manager object
555 # spawn process which runs a server
585 # bpo-36368: protect server process from KeyboardInterrupt signals
594 # inform parent process of the server's address
616 Join the manager process (if it has been spawned)
660 def _finalize_manager(process, address, authkey, state, _Client,
663 Shutdown the manager process; will be registered as a finalizer
665 if process.is_alive():
676 process.join(timeout=shutdown_timeout)
677 if process.is_alive():
679 if hasattr(process, 'terminate'):
680 util.info('trying to `terminate()` manager process')
681 process.terminate()
682 process.join(timeout=shutdown_timeout)
683 if process.is_alive():
685 process.kill()
686 process.join()
772 # objects for which the current process owns references and
789 self._authkey = process.AuthenticationString(authkey)
793 self._authkey = process.current_process().authkey
802 name = process.current_process().name
871 # tell manager this process no longer cares about referent
883 # the process owns no more references to objects for this manager
935 server = getattr(process.current_process(), '_manager_server', None)
944 not getattr(process.current_process(), '_inheriting', False)
991 authkey = process.current_process().authkey
1325 that support synchronization across processes (i.e. multi-process-safe
1334 # launching the manager process, so that concurrent
1336 # current process does not create two resource_tracker