diff --git a/src/bin/testservice.rs b/src/bin/testservice.rs index 49b2ac0..f2efe13 100644 --- a/src/bin/testservice.rs +++ b/src/bin/testservice.rs @@ -155,6 +155,10 @@ fn tcp_accept(fd: i32) -> std::thread::JoinHandle<()> { } fn main() { + if (nix::unistd::getpid().as_raw() / 10) % 10 != 0 { + panic!("My service is very bad. It immediately panics at startup."); + } + println!( "STARTED DEAMON WITH PID: {} AND FDS: {}", env::var("LISTEN_PID").unwrap(),