Skip to content

Commit f536356

Browse files
committed
Auto merge of #3126 - semarie:openbsd-thrname, r=JohnTitor
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
2 parents 5e98ea3 + 37c024d commit f536356

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)