[Webkit-unassigned] [Bug 48515] [NRWT] Clear invalid http locks on Windows platform as well

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Nov 3 14:03:00 PDT 2010


Tony Chang <tony at chromium.org> changed:

           What    |Removed                     |Added
  Attachment #72823|review?                     |review-
               Flag|                            |

--- Comment #8 from Tony Chang <tony at chromium.org>  2010-11-03 14:02:59 PST ---
(From update of attachment 72823)
View in context: https://bugs.webkit.org/attachment.cgi?id=72823&action=review

In general, I think this approach is fine.

> WebKitTools/Scripts/webkitpy/layout_tests/port/http_lock.py:102
> +            CreateToolhelp32Snapshot = ctypes.windll.kernel32.CreateToolhelp32Snapshot
> +            Process32First = ctypes.windll.kernel32.Process32First
> +            Process32Next = ctypes.windll.kernel32.Process32Next

Can we move this win32 code into a separate method?  Maybe _check_pid_win32?  Also, I would declare the PROESSENTRY32 class inside this method.  It seems like you could then unittest it (makes sure it kills a pid and make sure it doesn't infinite loop if the pid is not found).

> WebKitTools/Scripts/webkitpy/layout_tests/port/http_lock.py:103
> +            CloseHandle = ctypes.windll.kernel32.CloseHandle

Were you planning on using this?  Do we need to close something to avoid a leak?

Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

More information about the webkit-unassigned mailing list