char/avril
(wip) why'd you have to go and make things so complicaaaaated?
git clone https://git.t4t.associates/char/avril
f4a0f5b
main
1# [ cfg ( any ( target_os = "linux" , target_os = "macos" , windows ))] 2mod registry; 3# [ cfg ( not ( any ( target_os = "linux" , target_os = "macos" , windows )))] 4# [ path = "unsupported.rs" ] 5mod registry; 6# [ cfg ( any ( target_os = "linux" , target_os = "macos" , windows ))] 7use avril_subprocessas sys; 8 9mod signals; 10 11# [ cfg ( not ( any ( target_os = "linux" , target_os = "macos" , windows )))] 12pub use registry:: Tree ; 13pub use registry:: init; 14# [ cfg ( any ( target_os = "linux" , target_os = "macos" , windows ))] 15pub use registry:: supervision:: Tree ; 16 17/// Which process-wide signal duties the subprocess supervisor takes on. 18/// `Run` installs an interrupt handler; `Serve` and `Repl` leave interrupt 19/// to their own handlers (serve's shutdown, the REPL's eval interrupt). 20/// Terminate fate belongs to whoever claims it (serve's CLI listener); on 21/// unclaimed deliveries the supervisor stops children, waits briefly, then 22/// dies like the default disposition. 23# [ derive ( Clone , Copy )] 24pub enum SignalMode { 25Run , 26Serve , 27Repl , 28}