| Crates.io | term-handler |
| lib.rs | term-handler |
| version | 0.1.0 |
| created_at | 2018-11-27 06:03:51.117823+00 |
| updated_at | 2018-11-27 06:03:51.117823+00 |
| description | A library to wait for TERM signals (Ctrl-C) with a loop. |
| homepage | |
| repository | http://github.com/kitsuneninetails/term-handler-rust |
| max_upload_size | |
| id | 98872 |
| size | 2,560 |
Handles waiting for a termination or interrupt signal with a loop. The loop will exit once the SIGTERM/SIGINT is sent (usually via Ctrl-C).
Usage:
print!("Waiting for TERM signal");
wait_for_term();
print!("Term signal received, quitting!");