upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/runtime/src
diff options
context:
space:
mode:
authorjakeefr <jakeefr@users.noreply.github.com>2026-11-22 10:04:47 +0000
committerjakeefr <jakeefr@users.noreply.github.com>2026-11-22 10:04:47 +0000
commit867910e3290905ab2eff44482dc15b4136b5e3f9 (patch)
tree6e626c38a14f53a432d50e801051b3d38a74bc80 /runtime/src
parentc0ac5fd6518b3ba9fa66765b8b07099990dadd74 (diff)
viewer: a port in use is one line, and Ctrl+C stops the server without a traceback
Starting serve.py while a viewer is still running on the port ended in an OSError traceback from socketserver, and stopping it with Ctrl+C in a KeyboardInterrupt one. The first is now an argument error that names the port and points at --port 0; the second prints "viewer: stopped" and closes the socket. tests/test_viewer_serve.py: two tests, both fail on the old code. The Ctrl+C one is skipped on Windows and gives its child the default SIGINT disposition, so it also passes under a runner that has SIGINT ignored.
Diffstat (limited to 'runtime/src')
0 files changed, 0 insertions, 0 deletions