diff options
Diffstat (limited to 'init/src/main.rs')
| -rw-r--r-- | init/src/main.rs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/init/src/main.rs b/init/src/main.rs index a3492d1..a783600 100644 --- a/init/src/main.rs +++ b/init/src/main.rs @@ -17,7 +17,7 @@ use crate::pid_one::check_pid; use crate::processes::udev::spawn_udev; use crate::services::units::{Runlevel, services_mainloop}; use crate::signals::sigchld; -use crate::signals::sigterm::{self, RELOAD_REQUESTED, DEBUG_DUMP_REQUESTED}; +use crate::signals::sigterm::{self, DEBUG_DUMP_REQUESTED, RELOAD_REQUESTED}; // RULE: I will not use .expect() and .unwrap() in this project. This causes panic, // which will affect stability. @@ -88,7 +88,7 @@ fn main() -> Result<(), Box<dyn std::error::Error>> { thread::spawn(services_mainloop); log_success("System initialization complete. Entering main loop."); - + loop { if sigterm::SHUTDOWN_REQUESTED.load(std::sync::atomic::Ordering::SeqCst) { log_warning("Shutdown signal received."); @@ -98,17 +98,17 @@ fn main() -> Result<(), Box<dyn std::error::Error>> { if RELOAD_REQUESTED.swap(false, std::sync::atomic::Ordering::SeqCst) { log_warning("SIGUSR1 received - config reload requested (not implemented yet)."); - // TODO: Configs reload + // TODO: Configs reload } // SIGUSR2 (debug dump) if DEBUG_DUMP_REQUESTED.swap(false, std::sync::atomic::Ordering::SeqCst) { log_warning("SIGUSR2 received - debug dump requested (not implemented yet)."); - // TODO: debug dump + // TODO: debug dump } // Sleep to not disturb CPU - // TODO: io_uring / epolls + // TODO: io_uring / epolls thread::sleep(Duration::from_secs(1)); } } |
