diff options
| author | Shrey Ratna <shreyratna4445@hotmail.com> | 2026-11-22 19:22:04 +0000 |
|---|---|---|
| committer | Shrey Ratna <shreyratna4445@hotmail.com> | 2026-11-22 20:01:53 +0000 |
| commit | 07087692bf6b119e15dbbdfc83b5cc9d55edccad (patch) | |
| tree | 5b9342318b26aa19e35e3e63455057e3affebe67 /runtime/src/pe_loader.cpp | |
| parent | f847748cc76bd3777f9c070c4034eb2fc1c04e64 (diff) | |
viewer: a Ctrl+C right after the serving line stops the viewer too
serve.py printed "viewer: http://..." before entering the try that catches KeyboardInterrupt.
test_ctrl_c_stops_the_viewer_without_a_traceback sends SIGINT as soon as it reads that line, and
when the signal was handled between the print and the try, the interrupt escaped: exit -2 and a
traceback. Under load that is 24 of 300 runs with 12 at once (300 of 300 clean with the print inside
the try); a parallel pytest run on main failed the test this way.
The print is inside the try now, and a new in-process test raises the interrupt from printing that
line, so the case is checked every time instead of by chance.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'runtime/src/pe_loader.cpp')
0 files changed, 0 insertions, 0 deletions