third_party/blink/tools/blinkpy/web_tests/servers/wptserve.py
def _check_and_kill(self):
        """Tries to kill wptserve.

        Returns True if it appears to be not running. Or, if it appears to be
        running, tries to kill the process and returns False.
        """
        if not self._pid:
            _log.warning('No PID; wptserve has not started.')
            return True

        # Polls the process in case it has died; otherwise, the process might be
        # defunct and check_running_pid can still succeed.
        if (self._process and self._process.poll()) or \
                (not self._executive.check_running_pid(self._pid)):
            _log.debug('pid %d is not running', self._pid)
            return True

        _log.debug('pid %d is running, killing it', self._pid)
        self._executive.kill_process(self._pid)

        return False
Tries to kill wptserve.

        Returns True if it appears to be not running. Or, if it appears to be
        running, tries to kill the process and returns False.
        
Tries to kill wptserve.
Returns True if it appears to be not running. Or, if it appears to be
running, tries to kill the process and returns False.
Tries to kill wptserve . Returns True if it appears to be not running . Or if it appears to be running tries to kill the process and returns False .
def _check_and_kill(self):
        if not self._pid:
            _log.warning('No PID; wptserve has not started.')
            return True
        if (self._process and self._process.poll()) or \
                (not self._executive.check_running_pid(self._pid)):
            _log.debug('pid %d is not running', self._pid)
            return True
        _log.debug('pid %d is running, killing it', self._pid)
        self._executive.kill_process(self._pid)
        return False
def _check_and_kill ( self ) : if not self . _pid : _log . warning ( 'No PID; wptserve has not started.' ) return True if ( self . _process and self . _process . poll ( ) ) or ( not self . _executive . check_running_pid ( self . _pid ) ) : _log . debug ( 'pid %d is not running' , self . _pid ) return True _log . debug ( 'pid %d is running, killing it' , self . _pid ) self . _executive . kill_process ( self . _pid ) return False
Tries to kill wptserve.
Tries to kill wptserve .
"""Tries to kill wptserve.

        Returns True if it appears to be not running. Or, if it appears to be
        running, tries to kill the process and returns False.
        """ # Polls the process in case it has died; otherwise, the process might be # defunct and check_running_pid can still succeed.
self