• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

umputun / agterm / 39054284160
94%

Build:
DEFAULT BRANCH: master
Ran 17 Oct 2026 05:38PM UTC
Jobs 1
Files 201
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

17 Oct 2026 05:33PM UTC coverage: 93.969% (+0.04%) from 93.925%
39054284160

push

github

umputun
fix(live): answer device attributes while draining creation attach

Parse DA1 and DA2 from the creation attach PTY and write the same replies
as the pinned zmx util.zig implementation. Preserve partial writes and
transient errors with bounded buffering.

The creation attach is forked from whatever thread serves the host, and
exec keeps that thread's signal mask and every ignored signal, including
one inherited from the host's own launch. A blocked or ignored SIGTERM
left the attach alive and leading until the SIGKILL grace ran out, and a
shell's startup query in that window went unanswered. Reset dispositions
and then clear the mask in the forkpty child before exec.

Teardown no longer signals right after one drain pass, which lost a DA
query the daemon was still forwarding and a reply the attach had not
forwarded yet. When the attach has carried a DA query, or a reply or an
unfinished escape prefix is still held, keep draining and replying in
5 ms steps until replies are flushed and 50 ms pass with no new query,
capped at 250 ms. The prefix check is conservative: a lone ESC or CSI of
some other sequence also holds teardown until it completes or the cap
passes. A failed write ends the wait, and a child reaped while settling
is never signalled, since its pid may already belong to another process.
The trigger covers the whole attach lifetime rather than the final pass
alone, because that pass can run before a query still in flight. An
attach that never carried a query, which is every zsh creation, is
signalled at once with no added pause and no write. A reply written
before SIGTERM can still sit in the attach or socket/PTY queues; no
detach-key flush is added.

Cover fragmented queries, bounded backpressure, write errors, a query
released only after the first teardown pass, teardown without DA traffic
neither pausing nor writing, settling stopping at its limit, no signal
for a child that exits while settling, readiness transitions requiring
DA1, a clien... (continued)

94 of 94 new or added lines in 2 files covered. (100.0%)

15751 of 16762 relevant lines covered (93.97%)

2947894.2 hits per line

Jobs
ID Job ID Ran Files Coverage
1 39054284160.1 17 Oct 2026 05:38PM UTC 201
93.97
GitHub Action Run
Source Files on build 39054284160
  • Tree
  • List 201
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #39054284160
  • 82764b7b on github
  • Prev Build on master (#38953230455)
  • Next Build on master (#39056532314)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc