Skip to content
Playing with Linux processes termination in Rust
Rust
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src
.gitignore
Cargo.lock
Cargo.toml
README.md

README.md

reapme - playing with Linux processes termination in Rust

The project covers the following scenarios:

  • awaiting a child process termination;
  • awaiting a grandchild process termination;
  • catching the parent process termination.

Read more about it in my blog.

Usage

cargo build

# wait for the child termination
cargo run --bin wait_block

# wait for the child termination while busy looping
cargo run --bin wait_busy

# wait for the child termination signaled to you
cargo run --bin wait_signal

# test Linux CHILD_SUBREAPER feature
cargo run --bin subreaper

# put all things together
cargo run --bin combined
You can’t perform that action at this time.