Artifact 25d2873ae3c3306f06da981902b010322a20e4311b1cf4ba1d7ef005e68185bf:
- File
test/tui/tui.sh
-
2026-11-22 17:13:10
— part of check-in
[6ce6dfd386]
on branch tui-flakes
— tui: act on SIGTERM, SIGHUP and SIGQUIT outside the handler; fix the sign-in test's browser race
The terminal interface forked its SessionEnd launcher inside the signal handler. On macOS fork() runs the allocator's atfork lock, so a handler that interrupted malloc() crashes (SIGTRAP in _malloc_fork_prepare) or hangs: the "hooks SIGTERM" case hung with the reply on screen. The handler now only notes the signal and wakes the main loop (and run_sync), which restores the terminal, cancels the request, starts the launcher and re-raises. Crash signals restore the terminal and re-raise without forking.
The sign-in case's scripted browser counted launches with a read-modify-write of a file. macOS holds every run of a freshly written executable for about half a second on its first run, so the first two launches ran at once, both counted 1, and the third never signed in. Launches now take a slot with mkdir, and the script is run once before the sign-ins. (user: dmestas, size: 78622) [annotate] [blame] [check-ins using]
- 2026-11-22 17:24:22 — part of check-in [cbb9a9dbb4] on branch vendor-8aa1823 — Merge tui-flakes into vendor-8aa1823 (user: dmestas, size: 78622) [annotate] [blame] [check-ins using]
- 2026-11-22 17:24:31 — part of check-in [03df936ad2] on branch cred-order — Merge vendor-8aa1823 into cred-order (user: dmestas, size: 78622) [annotate] [blame] [check-ins using]
-
2026-11-22 17:38:10
— part of check-in
[ec6e1a0c23]
on branch trunk
— land tui-flakes
via mac, quarry (user: dmestas, size: 78622) [annotate] [blame] [check-ins using]
- 2026-11-22 17:39:28 — part of check-in [149bde84dd] on branch docs-drift — Merge trunk into docs-drift (user: dmestas, size: 78622) [annotate] [blame] [check-ins using]
- 2026-11-22 18:02:53 — part of check-in [57e40558ae] on branch tether-1 — Merge trunk into tether-1 (user: pi-c-agent, size: 78622) [annotate] [blame] [check-ins using]
-
2026-11-22 17:13:10
— part of check-in
[6ce6dfd386]
on branch tui-flakes
— tui: act on SIGTERM, SIGHUP and SIGQUIT outside the handler; fix the sign-in test's browser race