#process #create #running

zygote

A zygote process is a small process used primarily to create new processes

3 releases

0.1.2 Jan 17, 2025
0.1.1 Dec 18, 2024
0.1.0 Dec 17, 2024

#1702 in Unix APIs

Download history 4/week @ 2026-01-24 8/week @ 2026-02-14 1153/week @ 2026-02-21 367/week @ 2026-02-28 359/week @ 2026-03-07 407/week @ 2026-03-14 980/week @ 2026-03-21 171/week @ 2026-03-28 204/week @ 2026-04-04 515/week @ 2026-04-11 633/week @ 2026-04-18 296/week @ 2026-04-25 240/week @ 2026-05-02 843/week @ 2026-05-09

2,019 downloads per month
Used in 3 crates (2 directly)

Apache-2.0

36KB
744 lines

zygote

zygote is a library to create zygote processes on linux. A zygote process is a small process used primarily to create new processes, but can be used for anything that requires running things in a separate process.

To learn more about zygote processes check out these notes on Chromium.

Getting started

use zygote::Zygote;
fn main() {
    Zygote::init();
    let pid = Zygote::global().run(|_| std::process::id(), ());
    assert_ne!(pid, std::process::id());
}

Dependencies

~2.2–3MB
~63K SLoC