Changeset 221011 in webkit


Ignore:
Timestamp:
Aug 22, 2017 8:46:30 AM (7 years ago)
Author:
Jonathan Bedard
Message:

Fix leak-checking for iOS Simulators
https://bugs.webkit.org/show_bug.cgi?id=175735

Reviewed by David Kilzer.

Follow-up fix to r220942. _proc may be undefined.

  • Scripts/webkitpy/port/server_process.py:

(ServerProcess._wait_for_stop): Handle case where _proc is undefined.

Location:
trunk/Tools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r221010 r221011  
     12017-08-22  Jonathan Bedard  <jbedard@apple.com>
     2
     3        Fix leak-checking for iOS Simulators
     4        https://bugs.webkit.org/show_bug.cgi?id=175735
     5
     6        Reviewed by David Kilzer.
     7
     8        Follow-up fix to r220942. _proc may be undefined.
     9
     10        * Scripts/webkitpy/port/server_process.py:
     11        (ServerProcess._wait_for_stop): Handle case where _proc is undefined.
     12
    1132017-08-22  Carlos Alberto Lopez Perez  <clopez@igalia.com>
    214
  • trunk/Tools/Scripts/webkitpy/port/server_process.py

    r220942 r221011  
    360360        if timeout_secs:
    361361            deadline = now + timeout_secs
    362             while self._proc.poll() is None and time.time() < deadline:
     362            while self._proc and self._proc.poll() is None and time.time() < deadline:
    363363                time.sleep(0.01)
    364             if self._proc.poll() is None:
     364            if self._proc and self._proc.poll() is None:
    365365                _log.warning('stopping %s(pid %d) timed out, killing it' % (self._name, self._proc.pid))
    366366
    367         if self._proc.poll() is None:
     367        if self._proc and self._proc.poll() is None:
    368368            self._kill()
    369369            killed = True
     
    371371
    372372        # read any remaining data on the pipes and return it.
    373         if not killed:
     373        if self._proc and not killed:
    374374            if self._use_win32_apis:
    375375                self._wait_for_data_and_update_buffers_using_win32_apis(now)
Note: See TracChangeset for help on using the changeset viewer.