process: i32 vs u32 #299
Unanswered
troelsarvin
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
procfs::process::Task's pid is i32.
But procfs::process::Task::children() returns a result with a vector of u32.
How can there be a difference? Shouldn't it be the same type, and shouldn't it be a signed value? According to POSIX, glibc, as well as FreeBSD's libc, pid_t is a signed integer.
Beta Was this translation helpful? Give feedback.
All reactions