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

immortal / fork / 39908664585
67%
main: 68%

Build:
Build:
LAST BUILD BRANCH: develop
DEFAULT BRANCH: main
Ran 23 Oct 2026 05:58AM UTC
Jobs 1
Files 14
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

23 Oct 2026 05:57AM UTC coverage: 66.701% (+2.4%) from 64.299%
39908664585

push

github

nbari
0.11.0 Add a process-group probe and pin an armed guard's group

process_group_exists performs the POSIX null-signal check kill(-pgid, 0) and
reports whether any member, including an unreaped zombie, remains, without
delivering a signal: success and EPERM mean present, ESRCH absent, EINTR is
retried. A supervisor can wait with its own deadline until a group it killed
has drained instead of assuming it is empty.

An armed ProcessGroupGuard now pins its group. The out-of-group helper creates
the group's anchor, which leads the group and exits, and leaves the anchor
unreaped while the guard is armed. The anchor's zombie is a member, so the
group and its numeric ID stay reserved after every workload member has exited
or left, and the helper's owner-loss SIGKILL can never reach an unrelated group
that reused an emptied ID. disarm reaps the anchor and releases the pin;
activate only records activation. The anchor is the helper's child, never the
owner's. macOS skips zombie members and answers a signal to a group holding
only the anchor with EPERM; the helper, like process_group_exists, treats that
group as present.

ProcessGroupGuard::signal_group delivers a signal through the helper while it
still holds the anchor, so an armed group is never signalled by numeric ID and
a dead helper makes delivery fail instead of reaching a reused group. Each
request carries a unique ID, so a reply acknowledges only its own request.
Cleanup resumes a stopped helper before its deadline, even when another waiter
consumed the stop, and the helper kills its own anchor before reaping it.

Before creating the anchor the helper resets every inherited signal handler to
the default, as exec would, keeping ignored signals ignored. It then creates
the anchor without fork(3), whose pthread_atfork handlers would otherwise run
inside the helper and could reap the anchor or restore auto-reaping. On Linux
and Android architectures whose clone returns 0 in the child it issues the
system ca... (continued)

580 of 853 new or added lines in 9 files covered. (68.0%)

12 existing lines in 4 files now uncovered.

1921 of 2880 relevant lines covered (66.7%)

409.3 hits per line

Uncovered Changes

Lines Coverage ∆ File
116
67.1
-4.75% src/group_guard.rs
61
60.13
src/group_guard/delivery.rs
32
63.88
9.91% src/descriptor.rs
31
8.82
src/group_guard/anchor/syscall.rs
12
87.69
-0.31% src/wait.rs
11
62.6
22.91% src/child_signal.rs
8
57.93
4.0% src/daemon.rs
1
58.07
2.23% src/command.rs
1
92.16
4.23% src/signal.rs

Coverage Regressions

Lines Coverage ∆ File
5
67.1
-4.75% src/group_guard.rs
3
63.88
9.91% src/descriptor.rs
3
0.0
-15.79% src/raw.rs
1
57.93
4.0% src/daemon.rs
Jobs
ID Job ID Ran Files Coverage
1 39908664585.1 23 Oct 2026 05:58AM UTC 14
66.7
GitHub Action Run
Source Files on build 39908664585
  • Tree
  • List 14
  • Changed 10
  • Source Changed 8
  • Coverage Changed 10
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #39908664585
  • bf240d69 on github
  • Prev Build on develop (#29648108172)
  • Delete
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