Comments (5)
I'll tackle this one if you haven't started π
from libproc-rs.
OK, I read up on /proc FS and it looks like you should be able to get this from /proc/{pid}/exe which is a link to the executable file. Will need to figure out what the path the link points to is.
from libproc-rs.
Yeah so I've already pushed a PR for it #38 π
from libproc-rs.
Merged. We can see how we can make a reliable (cross-platform) test that checks it works (as opposed to the current one that checks pid = -1 doesn't work) in separate work.
Thanks for the contribution
from libproc-rs.
Fixed by #38
from libproc-rs.
Related Issues (20)
- build error in aosp rust HOT 2
- Run clippy on βall-features and βall-targets HOT 1
- pidpath() should return Result<PathBuf, String> HOT 5
- Add calls that were added in 10.7
- Travis master cron build has started failing on Darwin/rust-stable HOT 2
- How to collect memory information for a process on non-Mac OS? HOT 10
- More detailed doc comments
- How can I get the current thread id? HOT 8
- macOS 11/Apple silicon showing high virtual memory usage HOT 19
- Update Github Action testing to macos-12 when available. HOT 1
- Create a mapping of OS version to XNU version to variants available HOT 1
- Fix tests threadinfo_test() and workqueueinfo_test() HOT 1
- Add V5 of usage struct with flags field
- macos11 nightly fails with clippy misaligned access warning
- Stable and Nightly fail due to unaligned access warning HOT 1
- Failed to build libproc bindings HOT 23
- Problems compiling in nixpkgs HOT 1
- MacOS: accept a typeinfo argument for listpids HOT 11
- see why "act" (for running GH Actions locally) fails
- Fix publishing of docs page HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from libproc-rs.