Change trailing prctl arguments to c_ulong
This commit is contained in:
parent
34bcc8e8ff
commit
e8a6f53af8
1 changed files with 7 additions and 1 deletions
|
@ -122,7 +122,13 @@ impl Thread {
|
|||
// pthread wrapper only appeared in glibc 2.12, so we use syscall
|
||||
// directly.
|
||||
unsafe {
|
||||
libc::prctl(PR_SET_NAME, name.as_ptr(), 0, 0, 0);
|
||||
libc::prctl(
|
||||
PR_SET_NAME,
|
||||
name.as_ptr(),
|
||||
0 as libc::c_ulong,
|
||||
0 as libc::c_ulong,
|
||||
0 as libc::c_ulong,
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue