Skip to content

Commit

Permalink
Fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
Jake-Shadle committed Aug 12, 2024
1 parent 6419356 commit 6ce1b43
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions tests/ptrace_dumper.rs
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,10 @@ fn test_thread_list_from_child() {
let _thread = std::thread::Builder::new()
.name("sighup-thread".into())
.spawn(move || {
tx.send(unsafe { libc::pthread_self() }).unwrap();
loop {}
tx.send(unsafe { libc::pthread_self() as usize }).unwrap();
loop {
std::thread::sleep(std::time::Duration::from_secs(1));
}
})
.unwrap();

Expand Down Expand Up @@ -78,7 +80,7 @@ fn test_thread_list_from_child() {
}

unsafe {
libc::pthread_kill(thread_id, libc::SIGHUP);
libc::pthread_kill(thread_id as _, libc::SIGHUP);
}

spawn_child("thread_list", &[]);
Expand Down

0 comments on commit 6ce1b43

Please sign in to comment.