3 ms·
> Another approach would be giving every process an ID that never repeats and is unique across all namespaces, and use that for comparison instead of the PID.
by icambron 12y ago
> Another approach would be giving every process an ID that never repeats and is unique across all namespaces, and use that for comparison instead of the PID.
This seems like a nice choice. PRNG seeds aside, it's always bothered me that processes aren't uniquely identified, which makes monitoring them kind of a pain.
- TheLoneWolfling 12y agoA 64-bit process ID would allow that. Well, currently. (~585 years to overflow at 1 billion PIDs/sec. Seems absurd, but then again, there are so many cases where we've gone "this should be good enough"...)
- rcthompson 12y agoBut at least if it lasts longer than your lifespan, you can be sure it will be someone else's problem when it goes wrong.