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

immortal / fork / 39794658479
67%
main: 68%

Build:
Build:
LAST BUILD BRANCH: develop
DEFAULT BRANCH: main
Ran 22 Oct 2026 02:20PM UTC
Jobs 1
Files 13
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

22 Oct 2026 01:39PM UTC coverage: 64.855% (+0.6%) from 64.299%
39794658479

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 resets
SIGCHLD to its default disposition, forks the group's anchor, which creates
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.
Where close_range is unavailable, descriptor closing also covers descriptors
opened above a later-lowered soft limit and fails before fork when the
descriptor inventory cannot be read.

ProcessGroupGuard::new, PreparedCommand::spawn and checked_daemon reject an
owner that auto-reaps children (SIGCHLD ignored or SA_NOCLDWAIT) before they
fork, and clean... (continued)

387 of 598 new or added lines in 8 files covered. (64.72%)

21 existing lines in 4 files now uncovered.

1718 of 2649 relevant lines covered (64.85%)

81.72 hits per line

Uncovered Changes

Lines Coverage ∆ File
96
61.82
-10.02% src/group_guard.rs
61
60.13
src/group_guard/delivery.rs
26
61.97
8.0% src/descriptor.rs
15
80.43
-7.57% src/wait.rs
7
56.94
3.02% src/daemon.rs
5
46.25
6.57% src/child_signal.rs
1
92.16
4.23% src/signal.rs

Coverage Regressions

Lines Coverage ∆ File
14
61.82
-10.02% src/group_guard.rs
3
61.97
8.0% src/descriptor.rs
3
0.0
-15.79% src/raw.rs
1
56.94
3.02% src/daemon.rs
Jobs
ID Job ID Ran Files Coverage
1 39794658479.1 22 Oct 2026 02:20PM UTC 13
64.85
GitHub Action Run
Source Files on build 39794658479
  • Tree
  • List 13
  • Changed 10
  • Source Changed 8
  • Coverage Changed 10
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #39794658479
  • 57ceda53 on github
  • Prev Build on develop (#29648108172)
  • Next Build on group-probe (#39820477144)
  • 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