MCPcopy Index your code
hub / github.com/python/cpython / _MainProcess

Class _MainProcess

Lib/multiprocessing/process.py:401–422  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

399#
400
401class _MainProcess(BaseProcess):
402
403 def __init__(self):
404 self._identity = ()
405 self._name = 'MainProcess'
406 self._parent_pid = None
407 self._popen = None
408 self._closed = False
409 self._config = {'authkey': AuthenticationString(os.urandom(32)),
410 'semprefix': '/mp'}
411 # Note that some versions of FreeBSD only allow named
412 # semaphores to have names of up to 14 characters. Therefore
413 # we choose a short prefix.
414 #
415 # On MacOSX in a sandbox it may be necessary to use a
416 # different prefix -- see #19478.
417 #
418 # Everything in self._config will be inherited by descendant
419 # processes.
420
421 def close(self):
422 pass
423
424
425_parent_process = None

Callers 1

process.pyFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…