[FEATURE] Implement real fork, exec, wait, signals and terminal process groups #3
Labels
No labels
alpha-1
bug
ci
docs
duplicate
enhancement
help wanted
invalid
performance
phase-6
question
refactor
security
wontfix
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
erix/posixd#3
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem and motivation
Build tools and shell job control need real process snapshots, replacement, child status and signal delivery. A shell subshell checkpoint does not provide those semantics.
Proposed behavior and scope
Implement fork, exec, required spawn actions, wait, signals, groups/sessions and resource accounting across Posixd and the native process services. The fork snapshot contract defines the first boundary; native copying and libc remain implementation work.
Authority, security and reliability
Derive a fresh child inventory from original owners inside the sealed realm's ceiling. Share original open descriptions without copying service receivers, factories or pending grants. Bind control to live generations, validate user contexts and retain uncertain cleanup owners until positive retirement. Preserve the priority order: security, reliability, then performance.
Acceptance criteria
Alternatives and tradeoffs
Start with eager private copying. Copy-on-write needs separate correctness, revocation and fault-lifetime evidence. A spawn-only implementation cannot satisfy the required resumed fork continuation.
Tracking and rollout
Dependencies: realm lifecycle, filesystem semantics, memory and threads. Reviews: Posixd, manual. Overall progress is tracked in Integration #65.
Coordinate producer/consumer versions on
feature/posix-compatwith signed commits. Cargo Git dependencies trackmain; catalogs and helper selections use full immutable commits. Native implementation, failure controls and guest execution must satisfy their own criteria before this issue closes.erikinkinen referenced this issue from erix/lib-cstd2026-09-12 07:56:26 +02:00
[FEATURE] [P09] Implement real fork, exec, wait, signals and terminal process groupsto [FEATURE] Implement real fork, exec, wait, signals and terminal process groupsThe fork snapshot contract is published in
9a8f9ed6, with the matching manual update ind744f254. It specifies the two return paths, fresh identities, shared description lifetime, private-copy boundary, explicit capability inheritance and publication/cleanup ownership.The specification criterion is complete. Native copying, runtime child admission, cross-process description storage, libc and the corresponding VM controls remain open.