Skip to content

vminitd: Implement minimal init process to reap zombies#537

Open
dcantah wants to merge 1 commit intoapple:mainfrom
dcantah:vminitd-init-mode
Open

vminitd: Implement minimal init process to reap zombies#537
dcantah wants to merge 1 commit intoapple:mainfrom
dcantah:vminitd-init-mode

Conversation

@dcantah
Copy link
Member

@dcantah dcantah commented Feb 19, 2026

There are some workloads that benefit from having a "true" init process that reaps zombies. This change implements a minimal init as part of vminitd and exposes an API to be able to use this init process in our containers. signals will be forwarded, any child procs will be reaped and the exit code of the actual workload will be propagated. The LinuxContainer/LinuxPod API is a very simple bool to ask to use this as our init process, and the init simply spawns whatever command you want as a child underneath this.

➜  ./bin/cctl run --kernel bin/kernel.arm64 --init
/ # ps aux
PID   USER     TIME  COMMAND
    1 root      0:00 /.cz-init -- /bin/sh
    2 root      0:00 /bin/sh
    3 root      0:00 ps aux

There are some workloads that benefit from having a "true" init
process that reaps zombies. This change implements a minimal init
as part of vminitd and exposes an API to be able to use this init
process in our containers. signals will be forwarded, any child procs
will be reaped and the exit code of the actual workload will be propagated.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

Comments