RESOLVED FIXED 221150
[webkitcorepy] Support machines without Unix signal handling
https://bugs.webkit.org/show_bug.cgi?id=221150
Summary [webkitcorepy] Support machines without Unix signal handling
Jonathan Bedard
Reported 2021-01-29 13:34:18 PST
Not all machines support signal.alarm. Our timeout code makes an effort to function without signal.alarm when possible. Timeout is much less robust without signal.alarm, but is still useful in many circumstances.
Attachments
Patch (6.51 KB, patch)
2021-01-29 13:41 PST, Jonathan Bedard
no flags
Patch (9.10 KB, patch)
2021-01-29 17:00 PST, Jonathan Bedard
no flags
Patch for landing (9.13 KB, patch)
2021-02-01 10:42 PST, Jonathan Bedard
no flags
Radar WebKit Bug Importer
Comment 1 2021-01-29 13:34:30 PST
Jonathan Bedard
Comment 2 2021-01-29 13:41:04 PST
Don Olmstead
Comment 3 2021-01-29 15:19:59 PST
Works for me locally with Python 3 on Windows! There are other cases where signal.SIGKILL is used which isn't present in Python for Windows so some more cross platform fixes should probably happen around usage of signal.
Jonathan Bedard
Comment 4 2021-01-29 16:48:28 PST
Looks like there are a few in task_pool.py and our mock popen code. We might also need to address this in webkitpy/common/interrupt_debugging.py, but that would have broken layout tests in Python 2 on Windows machines as well.
Jonathan Bedard
Comment 5 2021-01-29 17:00:15 PST
Aakash Jain
Comment 6 2021-02-01 10:01:04 PST
rs=me
Jonathan Bedard
Comment 7 2021-02-01 10:42:08 PST
Created attachment 418896 [details] Patch for landing
EWS
Comment 8 2021-02-01 12:56:45 PST
Committed r272169: <https://trac.webkit.org/changeset/272169> All reviewed patches have been landed. Closing bug and clearing flags on attachment 418896 [details].
Note You need to log in before you can comment on or make changes to this bug.