(self)
Start child process
Start child process
Start child process
def start(self):
        '''
        Start child process
        '''
        self._check_closed()
        assert self._popen is None, 'cannot start a process twice'
        assert self._parent_pid == os.getpid(), \
               'can only start a process object created by current process'
        assert not _current_process._config.get('daemon'), \
               'daemonic processes are not allowed to have children'
        _cleanup()
        self._popen = self._Popen(self)
        self._sentinel = self._popen.sentinel
        # Avoid a refcycle if the target function holds an indirect
        # reference to the process object (see bpo-30775)
        del self._target, self._args, self._kwargs
        _children.add(self)
def start ( self ) : self . _check_closed ( ) assert self . _popen is None , 'cannot start a process twice' assert self . _parent_pid == os . getpid ( ) , 'can only start a process object created by current process' assert not _current_process . _config . get ( 'daemon' ) , 'daemonic processes are not allowed to have children' _cleanup ( ) self . _popen = self . _Popen ( self ) self . _sentinel = self . _popen . sentinel # Avoid a refcycle if the target function holds an indirect # reference to the process object (see bpo-30775) del self . _target , self . _args , self . _kwargs _children . add ( self )