Skip to content

Commit

Permalink
make the test service a lot immediatly
Browse files Browse the repository at this point in the history
  • Loading branch information
KillingSpark committed Apr 21, 2020
1 parent 1dd011c commit 513bf10
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/bin/testservice.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
Expand Down

0 comments on commit 513bf10

Please sign in to comment.