Skip to content

Commit 37c024d

Browse files
committed
add p_name field in kinfo_proc struct on OpenBSD
pthread_get_name_np() and pthread_set_name_np() are now using a kernel storage and could be viewed from outside the process. Reference: openbsd/src@cef5a14
1 parent 5e98ea3 commit 37c024d

File tree

1 file changed

+1
-0
lines changed
  • src/unix/bsd/netbsdlike/openbsd

1 file changed

+1
-0
lines changed

src/unix/bsd/netbsdlike/openbsd/mod.rs

+1
Original file line numberDiff line numberDiff line change
@@ -498,6 +498,7 @@ s! {
498498
pub p_tid: i32,
499499
pub p_rtableid: u32,
500500
pub p_pledge: u64,
501+
pub p_name: [::c_char; KI_MAXCOMLEN as usize],
501502
}
502503

503504
pub struct kinfo_vmentry {

0 commit comments

Comments
 (0)