rust-psutil: Error on getting uid
Please provide any of the following information if relevant:
-
rust-psutil version:
-
target platform info
- (if linux) distro: Linux ubuntu 4.15.0-74-generic #84-Ubuntu SMP Thu Dec 19 08:06:28 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
-
any relevant hardware info:
the code look like this
let process_id = &process.uids().expect("Unable to get Id").real;
and it panics
thread 'main' panicked at 'Unable to get Id: IoError { pid: 1, source: Custom { kind: InvalidData, error: "Expected 55 lines, got 54" } }', src/libcore/result.rs:1165:5
It says excepected 55 lines and got 54 .
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Comments: 17
Commits related to this issue
- [process][linux] fix status file parsing due to colon (#63) — committed to rust-psutil/rust-psutil by cjbassi 4 years ago
No probs, I appreciate you helping improve the library 😃