Skip to content

Commit

Permalink
Allow logging thread to exit.
Browse files Browse the repository at this point in the history
This fixes the valgrind hangs
  • Loading branch information
chrissie-c committed Jun 18, 2021
1 parent 9dc0297 commit 401026a
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions libknet/bindings/rust/tests/src/bin/knet-test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -90,11 +90,10 @@ fn filter_fn(private_data: u64,

fn logging_thread(recvr: Receiver<knet::LogMsg>)
{
loop {
for i in &recvr {
eprintln!("KNET: {}", i.msg);
}
for i in &recvr {
eprintln!("KNET: {}", i.msg);
}
eprintln!("Logging thread finished");
}

fn setup_node(our_hostid: &knet::HostId, other_hostid: &knet::HostId,
Expand Down

0 comments on commit 401026a

Please sign in to comment.