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

immortal / fork / 39384518726
67%
main: 68%

Build:
Build:
LAST BUILD BRANCH: develop
DEFAULT BRANCH: main
Ran 20 Oct 2026 07:08AM 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

20 Oct 2026 07:00AM UTC coverage: 63.831% (-0.5%) from 64.299%
39384518726

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.

signal_process_group and the probe refuse group 1, because kill(-1, ..) is the
POSIX broadcast to every process the caller may signal rather than a group
selector. The ... (continued)

288 of 442 new or added lines in 5 files covered. (65.16%)

23 existing lines in 2 files now uncovered.

1613 of 2527 relevant lines covered (63.83%)

81.12 hits per line

Uncovered Changes

Lines Coverage ∆ File
92
58.49
-13.36% src/group_guard.rs
61
60.13
src/group_guard/delivery.rs
1
92.16
4.23% src/signal.rs

Coverage Regressions

Lines Coverage ∆ File
20
58.49
-13.36% src/group_guard.rs
3
0.0
-15.79% src/raw.rs
Jobs
ID Job ID Ran Files Coverage
1 39384518726.1 20 Oct 2026 07:08AM UTC 13
63.83
GitHub Action Run
Source Files on build 39384518726
  • Tree
  • List 13
  • Changed 8
  • Source Changed 5
  • Coverage Changed 8
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #39384518726
  • 37891956 on github
  • Prev Build on develop (#29648108172)
  • Next Build on group-probe (#39411188383)
  • 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