Changeset 58473 in webkit
- Timestamp:
- Apr 28, 2010 9:20:36 PM (14 years ago)
- Location:
- trunk/WebKitTools
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebKitTools/ChangeLog
r58464 r58473 1 2010-04-28 Eric Seidel <eric@webkit.org> 2 3 Reviewed by David Levin. 4 5 Document that subprocess.poll/wait are not threadsafe 6 https://bugs.webkit.org/show_bug.cgi?id=38289 7 8 * Scripts/webkitpy/common/system/executive.py: 9 * Scripts/webkitpy/layout_tests/layout_package/dump_render_tree_thread.py: 10 * Scripts/webkitpy/layout_tests/port/chromium.py: 11 * Scripts/webkitpy/layout_tests/port/http_server.py: 12 * Scripts/webkitpy/layout_tests/port/server_process.py: 13 * Scripts/webkitpy/layout_tests/port/websocket_server.py: 14 1 15 2010-04-28 Chris Jerdonek <cjerdonek@webkit.org> 2 16 -
trunk/WebKitTools/Scripts/webkitpy/common/system/executive.py
r58397 r58473 109 109 output_line = child_process.stdout.readline() 110 110 if output_line == "" and child_process.poll() != None: 111 # poll() is not threadsafe and can throw OSError due to: 112 # http://bugs.python.org/issue1731717 111 113 return child_process.poll() 112 114 # We assume that the child process wrote to us in utf-8, … … 250 252 if decode_output: 251 253 output = output.decode("utf-8") 254 # wait() is not threadsafe and can throw OSError due to: 255 # http://bugs.python.org/issue1731717 252 256 exit_code = process.wait() 253 257 -
trunk/WebKitTools/Scripts/webkitpy/layout_tests/layout_package/dump_render_tree_thread.py
r58279 r58473 448 448 449 449 """ 450 # poll() is not threadsafe and can throw OSError due to: 451 # http://bugs.python.org/issue1731717 450 452 if (not self._driver or self._driver.poll() is not None): 451 453 self._driver = self._port.create_driver(self._image_path, self._shell_args) -
trunk/WebKitTools/Scripts/webkitpy/layout_tests/port/chromium.py
r58364 r58473 202 202 self._helper.stdin.write("x\n") 203 203 self._helper.stdin.close() 204 # wait() is not threadsafe and can throw OSError due to: 205 # http://bugs.python.org/issue1731717 204 206 self._helper.wait() 205 207 … … 307 309 308 310 def poll(self): 311 # poll() is not threadsafe and can throw OSError due to: 312 # http://bugs.python.org/issue1731717 309 313 return self._proc.poll() 310 314 … … 401 405 KILL_TIMEOUT = 3.0 402 406 timeout = time.time() + KILL_TIMEOUT 407 # poll() is not threadsafe and can throw OSError due to: 408 # http://bugs.python.org/issue1731717 403 409 while self._proc.poll() is None and time.time() < timeout: 404 410 time.sleep(0.1) 411 # poll() is not threadsafe and can throw OSError due to: 412 # http://bugs.python.org/issue1731717 405 413 if self._proc.poll() is None: 406 414 _log.warning('stopping test driver timed out, ' -
trunk/WebKitTools/Scripts/webkitpy/layout_tests/port/http_server.py
r58314 r58473 242 242 243 243 if self._process: 244 # wait() is not threadsafe and can throw OSError due to: 245 # http://bugs.python.org/issue1731717 244 246 self._process.wait() 245 247 self._process = None -
trunk/WebKitTools/Scripts/webkitpy/layout_tests/port/server_process.py
r58314 r58473 105 105 if it still is (wrapper around subprocess.poll).""" 106 106 if self._proc: 107 # poll() is not threadsafe and can throw OSError due to: 108 # http://bugs.python.org/issue1731717 107 109 return self._proc.poll() 108 110 return None … … 169 171 deadline = time.time() + timeout 170 172 while not self.timed_out and not self.crashed: 173 # poll() is not threadsafe and can throw OSError due to: 174 # http://bugs.python.org/issue1731717 171 175 if self._proc.poll() != None: 172 176 self.crashed = True … … 215 219 KILL_TIMEOUT = 3.0 216 220 timeout = time.time() + KILL_TIMEOUT 221 # poll() is not threadsafe and can throw OSError due to: 222 # http://bugs.python.org/issue1731717 217 223 while self._proc.poll() is None and time.time() < timeout: 218 224 time.sleep(0.1) 225 # poll() is not threadsafe and can throw OSError due to: 226 # http://bugs.python.org/issue1731717 219 227 if self._proc.poll() is None: 220 228 _log.warning('stopping %s timed out, killing it' % -
trunk/WebKitTools/Scripts/webkitpy/layout_tests/port/websocket_server.py
r58314 r58473 259 259 260 260 if self._process: 261 # wait() is not threadsafe and can throw OSError due to: 262 # http://bugs.python.org/issue1731717 261 263 self._process.wait() 262 264 self._process = None
Note: See TracChangeset
for help on using the changeset viewer.