https://github.com/iximiuz/reapme
Playing with Linux processes termination in Rust
https://github.com/iximiuz/reapme
linux process rust subreaper
Last synced: 12 months ago
JSON representation
Playing with Linux processes termination in Rust
- Host: GitHub
- URL: https://github.com/iximiuz/reapme
- Owner: iximiuz
- Created: 2019-10-16T20:36:04.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2022-09-07T17:45:49.000Z (almost 4 years ago)
- Last Synced: 2025-07-02T05:48:45.490Z (about 1 year ago)
- Topics: linux, process, rust, subreaper
- Language: Rust
- Homepage: https://iximiuz.com/en/posts/dealing-with-processes-termination-in-Linux/
- Size: 13.7 KB
- Stars: 16
- Watchers: 2
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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
```bash
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
```