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