Skip to content

Commit 513bf10

Browse files
committed
make the test service a lot immediatly
1 parent 1dd011c commit 513bf10

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/bin/testservice.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,10 @@ fn tcp_accept(fd: i32) -> std::thread::JoinHandle<()> {
155155
}
156156

157157
fn main() {
158+
if (nix::unistd::getpid().as_raw() / 10) % 10 != 0 {
159+
panic!("My service is very bad. It immediately panics at startup.");
160+
}
161+
158162
println!(
159163
"STARTED DEAMON WITH PID: {} AND FDS: {}",
160164
env::var("LISTEN_PID").unwrap(),

0 commit comments

Comments
 (0)