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

immortal / fork / 39836081870
67%
main: 68%

Build:
Build:
LAST BUILD BRANCH: develop
DEFAULT BRANCH: main
Ran 22 Oct 2026 06:59PM 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 06:58PM UTC coverage: 66.026% (+1.7%) from 64.299%
39836081870

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.

Cleanup signals a child PID only while the owner keeps exited children waitable
and the child is still unreaped, because only an unreaped child pins its PID;
otherwise ... (continued)

514 of 770 new or added lines in 8 files covered. (66.75%)

13 existing lines in 4 files now uncovered.

1854 of 2808 relevant lines covered (66.03%)

383.76 hits per line

Uncovered Changes

Lines Coverage ∆ File
131
59.59
-12.25% src/group_guard.rs
61
60.13
src/group_guard/delivery.rs
32
63.88
9.91% src/descriptor.rs
11
62.6
22.91% src/child_signal.rs
11
86.93
-1.07% src/wait.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
6
59.59
-12.25% 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 39836081870.1 22 Oct 2026 06:59PM UTC 13
66.03
GitHub Action Run
Source Files on build 39836081870
  • 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 #39836081870
  • 2f2ba0b1 on github
  • Prev Build on develop (#29648108172)
  • Next Build on group-probe (#39902004838)
  • 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