Changeset 90300 in webkit


Ignore:
Timestamp:
Jul 1, 2011, 5:09:12 PM (14 years ago)
Author:
abarth@webkit.org
Message:

2011-07-01 Adam Barth <abarth@webkit.org>

Add some more debug logging to try to understand why we're getting
stuck acquring the HTTP lock.

  • Scripts/webkitpy/layout_tests/port/http_lock.py:
Location:
trunk/Tools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r90298 r90300  
     12011-07-01  Adam Barth  <abarth@webkit.org>
     2
     3        Add some more debug logging to try to understand why we're getting
     4        stuck acquring the HTTP lock.
     5
     6        * Scripts/webkitpy/layout_tests/port/http_lock.py:
     7
    182011-07-01  Adam Barth  <abarth@webkit.org>
    29
  • trunk/Tools/Scripts/webkitpy/layout_tests/port/http_lock.py

    r73769 r90300  
    8888        lock_list = self._lock_file_list()
    8989        if not lock_list:
     90            _log.debug("No lock file list")
    9091            return
    9192        try:
     
    9798                FileSystem().remove(lock_list[0])
    9899                return
    99         except (IOError, OSError):
     100        except IOError, e:
     101            _log.debug("IOError: %s" % e)
    100102            return
    101         return int(current_pid)
     103        except OSError, e:
     104            _log.debug("OSError: %s" % e)
     105            return
     106        result = int(current_pid)
     107        _log.debug("Current lock pid: %s" % result)
     108        return result
    102109
    103110    def _create_lock_file(self):
     
    122129        return True
    123130
    124 
    125131    def wait_for_httpd_lock(self):
    126132        """Create a lock file and wait until it's turn comes. If something goes wrong
     
    132138        while self._curent_lock_pid() != os.getpid():
    133139            time.sleep(1)
     140
     141        _log.debug("HTTP lock acquired")
Note: See TracChangeset for help on using the changeset viewer.