term-handler

Crates.ioterm-handler
lib.rsterm-handler
version0.1.0
sourcesrc
created_at2018-11-27 06:03:51.117823
updated_at2018-11-27 06:03:51.117823
descriptionA library to wait for TERM signals (Ctrl-C) with a loop.
homepage
repositoryhttp://github.com/kitsuneninetails/term-handler-rust
max_upload_size
id98872
size2,560
Michael Micucci (kitsuneninetails)

documentation

README

Term Handler

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!");
Commit count: 0

cargo fmt