Guard type that keeps selected Unix signals suppressed.
use uninterruptible::Uninterruptible; // catch terminate signals (SIGTERM, SIGQUIT, SIGINT) let u = Uninterruptible::terminate().unwrap(); // do work, e.g. call in sub-process u.checkpoint().unwrap(); // fails if the process recived one of the terminate signals (e.g. CTRL-C was pressed) drop(u); // revert to default signal handlers
The signal constants.
Guard type that keeps selected signals suppressed.
Various signals commonly requesting shutdown of an application.